title: php - count() by key in second array of multidimensional array
body: <p>I have the following array</p>
  
  <pre><code>$_POST[0][name]
  $_POST[0][type]
  $_POST[0][planet]
  ...
  $_POST[1][name]
  $_POST[1][type]
  $_POST[1][planet]
  </code></pre>
  
  <p><strong>Now i want to count all the $_POST[x][type]. How to do that?</strong></p>
  
  <p>(<strong>If i would reverse</strong> the multidimensional array, it would work i guess like this:)</p>
  
  <pre><code>$count = count($_POST['type']);
  </code></pre>
  
  <p>how can i count the "type" in the original structure?</p>