Counters over sliding windows