http://www.ee.surrey.ac.uk/Teaching/Unix/unix2.html

wc -w a-file gives a simple wordcount

wc -l a-file tells you how many rows there are in the file