I found a way to count the matches found based on Frank's answer, but I think it is not 100% reliable. However, this works for me.
$('#autocompleteinput').autocomplete({ source: datasource, search: function() { $(this).data('count',0); }, open: function() { $(this).data('count',$('.ui-autocomplete > li').length); }, delay: 0 }).keyup(function(){ $('#count').html('Found '+$(this).data('count')+' items'); });
The delay should be 0, or often it will launch the keyboard before searching, and it will not count well.
Eagle source share