text: how do i count words?   if you have a unix/linux box you can try the following command:  cat  |sed 's/ /&#92;n/g' | sort | uniq -c   replace  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.