Google interview question

How to implement an infinite counter.