"wc" gives a "word count" on a file or I/O stream:
For example:
wc -w gives only the word count
wc -l gives only the line count
wc -c gives only the byte count
wc -m gives only the character counter
wc -L gives only the length of the longest line.