Fixed the number formating in the counter