title: Get count of items jQuery.each()
body: <p>I am parsing XML using jQuery. I want to get the count of all the sub nodes with the given tag name.</p>
  
  <p><strong>For example:</strong></p>
  
  <pre><code>&lt;People&gt;
  &lt;person name="hello'&gt;&lt;/person&gt;
  &lt;person name="hello'&gt;&lt;/person&gt;
  &lt;person name="hello'&gt;&lt;/person&gt;
  &lt;person name="hello'&gt;&lt;/person&gt;
  &lt;person name="hello'&gt;&lt;/person&gt;
  &lt;/people&gt;
  </code></pre>
  
  <p>I use the <strong>following jQuery Code:</strong></p>
  
  <pre><code>$(xml).find("person").each(function(){});
  </code></pre>
  
  <p>Of course the above code works, but I just want to get the count, I do not want to loop.  The reason is this: The above sample is too easy, my XML file and javascript code is a bit complex, so there is a lot of logic to figure out the xml file, and I don't want to spend code writing all that.</p>
  
  <p>Many Thanks!</p>