[jQuery] count the amount of all visible layers

[jQuery] count the amount of all visible layers

Hi! :-)
I am using this code: $("#statistik").html($("#dieTaten div").size());
It counts how many divs are included in the layer with the id
'dieTaten' and it is working perfectly.
However, I have a filter function that filters some layers out:
function doFilter(start, end, all)
{
$("#dieTaten div."+start).hide();
$("#dieTaten div."+end).show();
if(all)
{
$("#dieTaten div."+start).show();
$("#dieTaten div."+end).show();
}
}
The problem is that the the very first function counts ALL layers
even those which are hidden.
Is there a way to count all layers that are currently shown?
Thanks for your help,
Dominik
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/