added character counter