I have two tables: user and activity with @OneToMany relationship.
user
activity
@OneToMany
I have to write a query that will count activity for user and re