Count the lines in the lexer.