adds character counter