Since we're not using multiple threads, there's no need for cnt being atomic.