title: How to get_terms $count for custom-taxonomy
body: <p>Have a <code>custom-taxonomy</code> called <code>campaign_action</code> with three categories called <code>draft</code>, <code>live</code> and <code>paused</code>.</p>
  
  <p>I would like to display just the count for each but not in a list. </p>
  
  <p>For example, I would like to echo the count for each individually as -</p>
  
  <pre><code>&lt;li&gt;Draft (&lt;?php //code to display a number count for drafts ?&gt;)&lt;/li&gt;
  &lt;li&gt;Live (&lt;?php //code to display a number count for live ?&gt;)&lt;/li&gt;
  &lt;li&gt;Paused (&lt;?php //code to display a number count for paused ?&gt;)&lt;/li&gt;
  </code></pre>
  
  <p>I have successfully done this by displaying </p>
  
  <pre><code>foreach ( $terms as $term ) {
     echo '(' . $term-&gt;count . ')';
   }
  </code></pre>
  
  <p>However, this does not work for me and I want to get the <code>$count</code> for each individually.</p>
  
  <p>Thank you for your help.</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>To show further what I have in place currently </p>
  
  <pre><code>    &lt;?php  
  $terms = get_terms('campaign_action');
  
   if ( !empty( $terms ) &amp;&amp; !is_wp_error( $terms ) ){
  
   echo '(0)';
   foreach ( $terms as $term ) {
     echo '(' . $term-&gt;count . ')';
   }
   } 
  ?&gt; 
  </code></pre>
  
  <p>This will show all counts for each individual category but I only want to show the count for the category of <code>draft</code> within the <code>custom_taxonomy</code> of <code>campaign_action</code>  </p>
  
  <p>Here is an image of what the above achieves when added to the end of the Drafts. I want it to only show the count for the category of <code>drafts</code> within the <code>custom-taxonomy</code> of <code>campaign_action</code>. If it has zero posts with that category then it should show zero.
  <a href="https://i.stack.imgur.com/A6Lan.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/A6Lan.png" alt="enter image description here"></a></p>