title: Get record count Jquery from json return
body: <p>Here is my json return</p>
  
  <pre><code>{"data":
  {
  "4":{"my data is here"}
  ,"3":{"my data is here"}
  ,"2":{"my data is here"}
  ,"1":{"my data is here"}
  }
  }
  </code></pre>
  
  <p>I have four records, how do I write .length to set var</p>
  
  <p>Here is my jquery each</p>
  
  <pre><code>$.each(thedata.data, function()
  </code></pre>
  
  <p>returns all data fine and great I want to do get the amount of records in a var.</p>
  
  <p>this does not work.</p>
  
  <pre><code>var theRecordNumber = thedata.data.length; 
  </code></pre>
  
  <p>How can I set a variable to the amount of records returned</p>