count number of lines of a text file

wc -l  my_file.txt

https://en.wikipedia.org/wiki/Wc_(Unix)