add size() method to Trie