How to Initialize the counter