You can use not
method.
var tcount = $("#dlist > li").not(':has(div.hiddenItem)').length;
Or filter
method:
var tcount = $("#dlist > li").filter(function(){
return $('div.hiddenItem', this).length === 0;
}).length;