title: counting the number of arrays in a php decoded string
body: <p>I have two json decoded strings:   </p>
  
  <pre><code>{"Coords":[{"Accuracy":"66","Latitude":"88","Longitude":"99","Timestamp":"100"}]} 
  </code></pre>
  
  <p>and I have another string</p>
  
  <pre><code> {"Coords":[{"Accuracy":"222","Latitude":"333","Longitude":"444","Timestamp":"2013"},{"Accuracy":"3434","Latitude":"565","Longitude":"676","Timestamp":"7878"}]}.
  </code></pre>
  
  <p>Is there a way to be able to echo that the first string has 1 array and the second string has 2? My method was as following: </p>
  
  <pre><code>$Json_String=($_POST['Json']);                                                               $Json_Decoded= json_decode($Json_String, true);                                            echo count(json_decode($Json_String, true));                              
  </code></pre>
  
  <p>where $Json_String is just what I'm pasting into a text field for now for testing purposes.                                                                                                    </p>