I want to know how to get statistics through queries, I need to take out how many items I have in a given collection and by month and year