count words of each length in a file