has_tree support counting done