Counting filter-passing records for comparison