Is there a quick way to get the number of posts in a particular month, day or year?
And is there a way to get the number of posts returned in search results?
You can do this with categories:
$this_cat = &get_category($wp_query->get_queried_object_id());
$categoryPostCount = $this_cat->category_count;
I was wondering whether there was something similar for getting the number of posts in date-based archives and searches?