bugfix in counting words in file - not counting empty lines as words