Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Counter

// Add Shortcode
function state_counter( $atts ) {

	// Attributes
	$atts = shortcode_atts(
		array(
			'state' => '94',
			'post_type' => 'job_listing',
			'post_status' => 'publish',
		),
		$atts,
		'state_counter'
	);

	return $count_region = get_term( '. $atts["state"] .' ); echo $count_region->count;

}
add_shortcode( 'state_counter', 'state_counter' );