Created a function to get count based on nationality, year and month