Count on a tree 主席树 + LCA

NoSuchKey