int getParameterCount() {
		synchronized (function) {
			loadStackVariables();
			if (growsNegative()) {
				return getPositiveCount();
			}
			return getNegativeCount();
		}
	}
@return the number of parameters on the stack
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/oldfunction/OldStackFrameDB.java