public int getLeafCount() {
		if (isLeaf() || !isLoaded()) {
			return 1;
		}
		int count = 0;
		for (GTreeNode node : children()) {
			count += node.getLeafCount();
		}
		return count == 0 ? 1 : count;		// if my child count == 0, return 1 since I am a leaf
	}
Returns the total number of leaf nodes in the subtree from this node. Note that if any nodes
are "lazy" (see {@link GTreeLazyNode}) and not currently loaded, then it will be considered
as a leaf and return 1.

@return the total number of leaf nodes in the subtree from this node
Ghidra/Framework/Docking/src/main/java/docking/widgets/tree/GTreeNode.java