Conta itens no Div JQuery
$('#element').children('div').length;
Snippets
$('#element').children('div').length;
var count_elements = $('.class').length;