count how many words a file has