trie data matches counter on alice in wonderland