When someone comes and does a search on your site, they get a result with all the posts that match the search criteria that they used. But they have no idea how many items actually are displayed, unless its only a few and they are all displayed on the first page. This little bit of code will allow people to see how many posts there actually are, which can be very helpful for your readers. All you need to do is to add this code to your search.php file, and there you have it.
<h2 class="pagetitle">Search Result for <?php /* Search Count */ $allsearch = &new WP_Query("s=$s&showposts=-1"); $key = wp_specialchars($s, 1); $count = $allsearch->post_count; _e(''); _e('<span class="search-terms">'); echo $key; _e('</span>'); _e(' — '); echo $count . ' '; _e('articles'); wp_reset_query(); ?></h2>This code will then help out your readers and let them know that with the criteria that they used they are getting "Search Result for search terms – 24 Articles".