A basic rate limiter for API calls