If you want to get the count of posts in wordpress archive page, You can by 2 ways.
First option is
$count = $GLOBALS['wp_query']->post_count;
Another option is
$count = $GLOBALS['wp_query']->found_posts;
Have any doubt please comment here.
WordPress/PHP Developer Chennai
If you want to get the count of posts in wordpress archive page, You can by 2 ways.
First option is
$count = $GLOBALS['wp_query']->post_count;
Another option is
$count = $GLOBALS['wp_query']->found_posts;
Have any doubt please comment here.