predicate on raw  window data
linear counting for low cardinality