prefetch_trees does a node query for each tree, correct query count