sliding window by count-reservoir