added counting the words of a file