# getMaximumTemplateCount method

int getMaximumTemplateCount()

Gets the maximum number of templates that this face indexer can hold.

return Maximum number of templates that this face indexer can hold. throws FaceException An error has occurred during Face Library execution.

## Implementation

    int getMaximumTemplateCount() {
      Pointer<Int> pMaximumTemplateCount = calloc();
      try {
        var err = faceSDK.id3FaceIndexer_GetMaximumTemplateCount(_pHandle.value, pMaximumTemplateCount);
        if (err != FaceError.success.value) {
          throw FaceException(err);
        }
        final vMaximumTemplateCount = pMaximumTemplateCount.value;
        return vMaximumTemplateCount;
      } finally {
        calloc.free(pMaximumTemplateCount);
      }
    }