Group by and count query - Ash Framework