nltk frequency counter
some refactoring for parse_args