public int getFieldCount() {
        return docType.getFieldCount();
    }
Returns the number of fields in this only, not including inherited fields
config-model/src/main/java/com/yahoo/schema/document/SDDocumentType.java