in order to display counts for items per month and year

to make it looks better

to list all items according to year and month

to filter results by year or by month you can write the following query