SyntaxFix
Write A Post
Hire A Developer
Questions
You can use jQuery.children property.
var numItems = $('.wrapper').children('div').length;
for more information refer http://api.jquery.com/