Design a class that counts the number of recent requests within a certain time frame.
Implement a ping(t) method that adds a new request at time and returns the number of requests in the past milliseconds (from to ).
You're solving a warm-up queue problem. You need to track recent requests and remove old ones.