Conta itens no Div JQuery
$('#element').children('div').length;
Snippets
$('#element').children('div').length;
var count_elements = $('.class').length;
$('#menu ul').filter(function(){ return $(this).children("li").length > 1 })