window trie count is zero in clear function
fix count vs weight bug