But this works:
perl -wE'say~~(()=<>)' yourfile [download]
In reply to Re^3: Count number of lines in a text file by JavaFan in thread Count number of lines in a text file by Scott7477