title: Count number of certain value in multidimensional array
body: <p>How can I count the number of a certain value from a multidimensional array? For example:</p>
  
  <pre><code>array(
      array ('stack' =&gt; '1')
      array ('stack' =&gt; '1')
      array ('stack' =&gt; '1')
      array ('stack' =&gt; '1')
      array ('stack' =&gt; '2')
      array ('stack' =&gt; '2')
  )
  </code></pre>
  
  <p>In this example the result should be:</p>
  
  <blockquote>
    <p>stack == 1 => 4 matches
    <br />stack == 2 => 2 matches</p>
  </blockquote>