Retrieves the number of posts fitting the supplied parameters