title: PHP count items in a multi-dimensional array
body: <p>As you can see from the following array, there are three elements that appear on Nov 18, and another two elements that appear on Nov 22.  Can someone tell me how I can retrieve the counts of 3 and 2 respectively from this array?  Basically, I want to end up with a result something like this:</p>
  
  <p>Nov 18, 2011 = 3 items</p>
  
  <p>Nov 22, 2011 = 2 items</p>
  
  <p>Of course, the dates and the number of different dates will vary every time.  Here is the array:</p>
  
  <pre><code>Array
  (
      [0] =&gt; Array
          (
              [0] =&gt; Array
                  (
                      [2011-11-18 00:00:00] =&gt; C
                  )
  
              [1] =&gt; Array
                  (
                      [2011-11-18 00:00:00] =&gt; I
                  )
  
              [2] =&gt; Array
                  (
                      [2011-11-18 00:00:00] =&gt; S
                  )
  
          )
  
      [1] =&gt; Array
          (
              [0] =&gt; Array
                  (
                      [2011-11-22 00:00:00] =&gt; C
                  )
  
              [1] =&gt; Array
                  (
                      [2011-11-22 00:00:00] =&gt; S
                  )
  
          )
  
  )
  </code></pre>