title: Javascript counting number of objects in object
body: <p>I have an object something like:</p>
  
  <pre><code>Object {0=Object, 1=Object, 2=Object} // Output from console.log(obj.Data);
  </code></pre>
  
  <p>But there is no way that I can count the number of objects in object, then finally get the attribute value from the sub objects.</p>
  
  <p>I have tried</p>
  
  <pre><code>console.log(obj.Data[0].length); // It does not work
  
  console.log(obj.Data.length); // It does not work
  </code></pre>
  
  <p>This is a bit tricky for me. Hope you guys can help. </p>