Example 1
- Input
- ["HitCounter", "hit", "hit", "hit", "getHits", "hit", "getHits", "getHits"] [[], [1], [2], [3], [4], [300], [300], [301]]
- Output
- [null, null, null, null, 3, null, 4, 3]
Hits at 1, 2, and 3 are all live at 4. After hit(300) the count at 300 is 4, and at 301 the hit from 1 expires, leaving 3.