added a method to get a count for each date and picture.