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

		if (block == null) {
			return 0;
		}

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

		return SimpleDestReferenceIterator.getNumDestinations(block, followIndirectFlows, monitor);
	}
Get number of destination blocks flowing out of this block

@param block code block to get the destination block iterator for.
@param monitor task monitor which allows user to cancel operation.
@throws CancelledException if the monitor cancels the operation.
@deprecated this method should be avoided since it repeats the work of the getDestinations iterator
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/block/SimpleBlockModel.java