Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Custom term count

// WP_Term_Query arguments
$args = array(
	'taxonomy'               => array( 'topic' ),
	'include'                => array( 380 ),
	'fields'                 => 'count',
);

// The Term Query
$term_query = new WP_Term_Query( $args );