wc

Count lines, words, or bytes. More information: https://keith.github.io/xcode-man-pages/wc.1.html.

wc -l path/to/file

wc -w path/to/file

wc -c path/to/file

wc -m path/to/file

find . | wc