Possible Duplicate:
Count elements with jQuery
I have a list item like this:
<ul id="scale">
<li class="floatleft active"></li>
<li class="floatleft active"></li>
<li class="floatleft"></li>
<li class="floatleft"></li>
<li class="floatleft"></li>
</ul>
So what happens now is that through jQuery I set a couple of these list items as active. Now what I would like to do is count these active items on the same page after they have been actived. Is there any way to do that?