Add counter for character count