count number of words in a line in cshell

view full story

http://stackoverflow.com – I need to count the number of words in a line, in cshell. The words are separated by a space or numerous spaces. For example, fish duck cheese bacon would return 4. Is there a simple command for that that I'm missing? (HowTos)