Modify character counter to count linefeeds as one character in all cases.