finish first version of sliding window counters with some tests