title: Getting total count of JSON response
body: <p>Can this be done quickly in jQuery before I start looping through them?  Or would I need to also setup a separate group in the response of data with the total count as lets say.. the first variable?</p>
  
  <p>The common response looks something like this:</p>
  
  <pre><code> [
     {"name":"Tu\u011Frul","surname":"Topuz","message":"Hello World"}
     ,{"name":"Tu\u011Frul","surname":"Topuz","message":"Hello World"}
   ]
  </code></pre>
  
  <p>But would I use jQuery to return <code>2</code> as the total count (before I loop through them all?) Or would I need to do something like this?</p>
  
  <pre><code> [
     {"total":"2"}
     ,{"name":"Tu\u011Frul","surname":"Topuz","message":"Hello World"}
     ,{"name":"Tu\u011Frul","surname":"Topuz","message":"Hello World"}
   ]
  </code></pre>
  
  <p>Whats the most efficient/common (optimization-wise) way of doing this?</p>