Compiling text file provides word count