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

wc -w <file> gives a simple wordcount wc -l <file> tells you how many rows there are in