@Override
	public int getNumDestinations(CodeBlock block, TaskMonitor monitor) throws CancelledException {

		if (!(block.getModel() instanceof MultEntSubModel)) {
			throw new IllegalArgumentException();
		}

		return SubroutineDestReferenceIterator.getNumDestinations(block, monitor);
	}
Get number of destination references flowing out of this subroutine (block).
All Calls from this block, and all external FlowType block references
from this block are counted.

@param block code block to get the number of destination references from.
@param monitor task monitor which allows user to cancel operation.
@throws CancelledException if the monitor cancels the operation.
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/block/MultEntSubModel.java