Did you look at statistical queries? Before you use them, you should probably make sure, you understand, what they do: They can increase the number of queries sent to your DB. Actually i never use them and instead use group + a custom select field to get the count of related items in a single query. Note, that with GROUP BY you can only count the number of objects for one relation.