How to count children from different lists? [jQuery]
<p>I'm trying to count the number of child elements a certain category has.</p>

<p>This is the situation:</p>

<pre><code>&lt;ul id="select_cat"&gt;
  &lt;li id="_1"&gt;Category 1 (&lt;span&gt;#&lt;/span&gt;)&lt;/li&gt;
  &lt;li id="_2"&gt;Category 2 (&lt;span&gt;#&lt;/span&gt;)&lt;/li&gt;
&lt;/ul&gt;

&lt;ul id="cat_1&gt;
  &lt;li&gt;Link 1&lt;/li&gt;
  &lt;li&gt;Link 2&lt;/li&gt;
  &lt;li&gt;Link 3&lt;/li&gt;
&lt;/ul&gt;

&lt;ul id="cat_2"&gt;
  &lt;li&gt;Link 1&lt;/li&gt;
  &lt;li&gt;Link 2&lt;/li&gt;
&lt;/ul&gt; 
</code></pre>

<p>So I want to count the number of children a category has.
In this example the first cardinal sign should be 3, and the second should be 2.</p>

<p>How can I do this, using jQuery.</p>

<p><a href="http://www.jopwijk.be/links" rel="nofollow">Check an example (not jQuery)</a> </p>

<p>Thanks!</p>
