How to display or print the counter