Yes, $lines(myfile.txt) will return the number of lines.


Spelling mistakes, grammatical errors, and stupid comments are intentional.