bash count lines

Shell
wc -l
Source

Also in Shell: