Initialize a global counter to keep track of fetch requests.