counter for filter