public int getMaxNumOperands() {

		int numOperands = 0;
		for (InstructionMetadata instruction : instructions) {
			int numOperandsTemp = instruction.getOperands().size();
			if (numOperandsTemp > numOperands) {
				numOperands = numOperandsTemp;
			}
		}

		return numOperands;
	}
Returns the maximum number of operands across all instructions. ie: if
one instruction has 2 operands, another has 3, and another has 5, this
will return 5.

@return the max number of operands
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/instructionsearch/model/InstructionSearchData.java