get length of data set from jquery get method code example
Example: jquery li count in ul
$('#menu ul').filter(function(){ return $(this).children("li").length > 1 })
$('#menu ul').filter(function(){ return $(this).children("li").length > 1 })