int getDataTypeRecordCount() {
		lock.acquire();
		try {
			return builtinAdapter.getRecordCount() + compositeAdapter.getRecordCount() +
				arrayAdapter.getRecordCount() + pointerAdapter.getRecordCount() +
				typedefAdapter.getRecordCount() + functionDefAdapter.getRecordCount() +
				enumAdapter.getRecordCount();
		}
		finally {
			lock.release();
		}
	}
Diagnostic method to determine actual number of datatype records which exist.  This
may differ from the total number of datatypes reported via {@link DataTypeManager#getAllDataTypes()}
due to the manner in which datatypes are held in-memory (i.e., name-based indexed) if
duplicate datatype names exist within a category.
@return total number of datatype records.
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/data/DataTypeManagerDB.java