How can I count the number of divs with the class of "slide" in each set. In the example below the first group "item" will and up with three and the second group will have two. I've been trying to use .length but it adds all of the "slide" divs up.
<div class="item">
<div class="foo"></div>
<div class="bar">
<div class="slide"></div>
<div class="slide"></div>
<div class="slide"></div>
</div>
</div><!-- /item -->
<div id="item">
<div class="foo"></div>
<div class="bar">
<div class="slide"></div>
<div class="slide"></div>
</div>
</div><!-- /item -->