On my wordpress search page I would like to show a 'total found results'. This needs to be shown at the top of the page in a heading.
I've tried this code but I gives me only the results of the specific page. What I want is all the results, not just the page.
<?php echo $wp_query->post_count; ?>