Accepted approach of Murtaza unfortunatelly doesn't work for me. I don't know why. https://jsfiddle.net/7vLrhqyw/
This works:
$(".count").click(function () {
var count=0;
$('#uploadimages input:file').each(function(){
if($(this).val()=="")count++;
});
alert(count);
});