count number of lines of a text file

wc -l file.txt