How to check counter?