Create WordCount in text File

Takes text file as input, and output the word count in text file.