title: Count number of object in another object , javascript-json
body: <p>There seems to have many question asked similar on counting number of element already but I am failing to implement them with mine problem.</p>
  
  <p>After jquery ajax I get JSON data returned which looks something like this</p>
  
  <pre><code>Object {0: Object, 1: Object , xxxx:"asdf" ,yyyy:"asdf", zzzz:"asdf"}
  </code></pre>
  
  <p>I want to get number of <strong>object</strong> between this { } braces ( not counting those xxx,yyy element )</p>
  
  <p>I tried <code>.length</code> which doesn't work</p>
  
  <p>I also tried using this <a href="https://stackoverflow.com/questions/5223/length-of-javascript-object-ie-associative-array">Length of a JavaScript object</a> but that return the number of element in each object. I just want the number of object</p>
  
  <p>Thank You</p>