int getParameterCount() {
		function.manager.lock.acquire();
		try {
			checkIsValid();
			int cnt = 0;
			for (Variable variable : variables) {
				if (variable instanceof Parameter) {
					++cnt;
				}
			}
			return cnt;
		}
		finally {
			function.manager.lock.release();
		}
	}
@return the number of parameters which occupy stack storage
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/function/FunctionStackFrame.java