I got it !
The counter, as you call it, counts the number of characters in your script regardless if those characters are part of the code or in comments.
This is not a glitch. And do not stop using comments to lower the counter. The counter just display some overall usless information.