title: Is there a JS/jQuery Fully Recursive child node count function?
body: <p>Folks,</p>
  
  <p>Let's say that I have the following situation:</p>
  
  <pre><code>&lt;div class="outer"&gt;
      &lt;div&gt;
          &lt;span&gt;
               &lt;ul&gt;
                   &lt;div&gt; &lt;/div&gt;
                   &lt;div&gt; &lt;/div&gt;
               &lt;/ul&gt;
           &lt;/span&gt;
       &lt;/div&gt;
    &lt;/div&gt;
  </code></pre>
  
  <p>How would I find the total number of elements inside div.outer? Something like $('div.outer').children().size() or length returns 1 (I'm looking, in this case, for 5) is there a shortcut or function to find the total element count using js/jQuery or should I write a function just for this issue? TIA.</p>