The WordPress function get_term returns the count for the number of posts in the term, but this is for all post types. You need a custom function to count the number of posts in a term for a specific post_type.
/** * Returns the number of posts for a term in a taxonomy, for a post type * @param string $post_type * @param string $taxonomy * @return int count */ function get_post_count_for_term_and_post_type( $term_id, $taxonomy, $post_type ) { // Build the args $args = array( 'post_type' => $post_type, 'posts_per_page' => -1, 'tax_query' => array( array( 'taxonomy' => $taxonomy, 'field' => 'id', 'terms' => $term_id, ) ) ); // Get the posts $posts = get_posts( $args ); // Return the count return count($posts); }