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
stdin
to count lines, words and characters (bytes) in that order:find . | wc