Count the Number of Words in a File
An example for learning python distutils.
Count the occurence of words in a given text file.
wordcount --infile <filename> --outfile <filename>
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.