fix bug. If there is EOF after word (no '\n' between that), the word does not be counted.