Count end of words in the tree. Group words by prefixes.
Ignore .DS_Store