text: If you have a unix/linux box you can try the following command:\n\ncat <fileName> |sed 's/ /&#92;n/g' | sort | uniq -c \n\nreplace <filename> with the name fo the text file you want to count the words in. The result is sorted list of words with their count int he document.