counting filtered files