Add node count method
Correctly merge data dictionary when merging trees