title: Count how many UL have so many LI elements in jQuery
body: <p>I have various <strong>UL</strong> and I need to know about all existing <strong>UL</strong>, how many <strong>UL</strong> have two <strong>LI</strong>, what I'm trying to do with a each, this will be the right way.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$(function(){
  
   var count = '';
   var total = 1;
      
   $('ul li').each(function(index, el) {
     count++;
     if(count == 12) {
      total + 1;
     }
        
     count = '';
    });
      
      console.log('We found 2 UL with 2 li');
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;ul&gt;
   &lt;li&gt;Item&lt;/li&gt;
  &lt;/ul&gt;
  
  &lt;ul&gt;
   &lt;li&gt;Item&lt;/li&gt;
  &lt;/ul&gt;
  
  &lt;ul&gt;
   &lt;li&gt;Item&lt;/li&gt;
   &lt;li&gt;Item&lt;/li&gt;
  &lt;/ul&gt;
  
  &lt;ul&gt;
   &lt;li&gt;Item&lt;/li&gt;
   &lt;li&gt;Item&lt;/li&gt;
   &lt;li&gt;Item&lt;/li&gt;
    &lt;li&gt;Item&lt;/li&gt;
  &lt;/ul&gt;
  
  &lt;ul&gt;
   &lt;li&gt;Item&lt;/li&gt;
   &lt;li&gt;Item&lt;/li&gt;
  &lt;/ul&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>The this code, result: We found 2 UL with 2 li.</p>