Maybe try adding this before the loop:
$count = $wp_query->post_count;
But that may only return the number of posts you have set for posts_per_page, in that case you might be able to use:
$count = $wp_query->found_posts;
Maybe try adding this before the loop:
$count = $wp_query->post_count;
But that may only return the number of posts you have set for posts_per_page, in that case you might be able to use:
$count = $wp_query->found_posts;