title: Count the <li>s in a <ul> with jQuery
body: <p>I have a simple list like this:</p>
  
  <pre><code>&lt;ul id="cyclelist"&gt;
     &lt;li&gt;Item 1&lt;/li&gt;
     &lt;li&gt;Item 2&lt;/li&gt;
     &lt;li&gt;Item 3&lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>and I am using jQuery to cycle through the list. The first problem is finding if the list has more than one elements to start with. I expect something like this to work:</p>
  
  <pre><code>var $list = $('#cyclelist');
  
  if ($list.length &gt; 1) {
    ...
  }
  </code></pre>
  
  <p>But length always returns 1. Is there a better way to find the length of the list using jQuery? Or am I getting this wrong?</p>