character count is outside the input