Apply filters to count aggregate