promoted lineCount from code- to string- scanner.