in reply to Count the number of lines in a file

TIMTOWTDI
perl -ne END{print$.} file
Bonus: Cross-platform portable because no quotes are needed.