Implement a basic rate-limiter class that can be integrated into an API gateway to prevent denial-of-service attacks for Inc. In services.