Added a method ValueTree::getReferenceCount()