@Override
    public String toString() {
        return "document type '" + docType.getName() + "'";
    }
Returns the number of fields in this only, not including inherited fields
config-model/src/main/java/com/yahoo/schema/document/SDDocumentType.java