Add the ability to only count records that meet a filtered condition.