added a count on the posts per category