title: How to take Count (*) as variable from SQL to php?
body: <p>I have made request to SQL: </p>
  
  <pre><code>SELECT meta_value,  COUNT(*)  from wp_postmeta; 
  </code></pre>
  
  <p>and have in respond an array: </p>
  
  <pre><code>array (size=102)
    0 =&gt; 
      object(stdClass)[24]
        public 'meta_value' =&gt; string '37' (length=2)
        public 'COUNT(*)' =&gt; string '147' (length=3)
    1 =&gt; 
      object(stdClass)[23]
        public 'meta_value' =&gt; string '32' (length=2)
        public 'COUNT(*)' =&gt; string '143' (length=3)
  </code></pre>
  
  <p>I take "meta_value" without any troubles with php code:  </p>
  
  <pre><code>$result-&gt;meta_value;
  </code></pre>
  
  <p>But how take values of public <strong>'COUNT(*)'</strong> => string '143' (length=3)? 
  I have tried different syntaxis and some errors only. </p>
  
  <p><em>I need values: 147,143...</em> </p>