You are working on a high-performance server application that handles a large number of concurrent requests. One of the requirements of this application is to count the number of requests that have been processed. However, you have noticed that the counter you have implemented is not thread-safe and sometimes produces incorrect results. You have learned about the Atomic classes and decide to use them to implement a thread-safe counter.
Implement a Java class called RequestCounter that uses an AtomicInteger to count the number of requests that have been processed. The class should have the following methods:
void increment(): atomically increments the counter.int getCount(): atomically gets the current value of the counter.