Hitung CPT WP

$count_posts = wp_count_posts( 'jobs' )->publish;
Andrew Lautenbach