@Deprecated
    public static int getNumSources(CodeBlock block, boolean followIndirectFlows, TaskMonitor monitor) throws CancelledException {
    	return getSources(block, null, followIndirectFlows, monitor);
    }
Get number of source references flowing from this subroutine (block).
All Calls to this block, and all external FlowType block references
to this block are counted.

@param block code block to get the number of source references to.
@param followIndirectFlows indirect references will only be included if true
@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 iterator
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/block/SimpleSourceReferenceIterator.java