avoid warning

length() used on @lineCount (did you mean "scalar(@lineCount)"?)