title: How do I count list elements that are not hidden?
body: <p>Starting with a simple list:</p>
  
  <pre><code>&lt;ul&gt;
      &lt;li&gt;Item 1&lt;/li&gt;
      &lt;li style="display: none;"&gt;Item 2&lt;/li&gt;
      &lt;li&gt;Item 3&lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>I know that I can subtract the hidden elements from the list total</p>
  
  <pre><code>$('ul li').size() - $('ul li:hidden').size()
  </code></pre>
  
  <p>But I thought there might be a more elegant way to achieve this with jquery:</p>
  
  <pre><code>$('ul li:hidden:not').size()
  </code></pre>
  
  <p>That doesn't work.  Any ideas?</p>