@Override
	public int getParameterCount() {
		manager.lock.acquire();
		try {
			checkIsValid();
			if (thunkedFunction != null) {
				return thunkedFunction.getParameterCount();
			}
			loadVariables();
			int count = params.size();
			if (autoParams != null) {
				count += autoParams.size();
			}
			return count;
		}
		finally {
			manager.lock.release();
		}
	}
Adjust the specified parameter for a thunk function if required.
This method will return a newly minted this auto-param if required
to reflect the overriden name and class within which this thunk
resides.
@param parameter thunk parameter
@return an adjusted auto-parameter or the original parameter
if no adjustment was required
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/function/FunctionDB.java