Adding a count to track the caching time