wc

Count lines, words, and bytes. More information: https://www.gnu.org/software/coreutils/wc.

wc --lines path/to/file

wc --words path/to/file

wc --bytes path/to/file

wc --chars path/to/file

find . | wc

wc --max-line-length path/to/file