I know the command in Unix/Linux systems is "wc" but that doesn't work in Windows.
For reference the description for the UNIX word count command wc is:
Print newline, word, and byte counts for each FILE, and a total line if more than one FILE is specified. With no FILE, or when FILE is -, read standard input.