trie working, number of words implemented