Counts the # of words in a document (DOC and DOCX only) using the command line.  Written in PHP but the command line snippets can be extracted to be used in any language.