public int getNumFields() {
		return getColumnCount();
	}
Returns the number of display fields for this structure or union.

@return the number of display fields for each component
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/compositeeditor/CompositeViewerModel.java