# getModuleCount static method

int getModuleCount()

Retrieves the number of modules in the license.

return The number of modules in the license. throws FaceException An error has occurred during Face Library execution.

## Implementation

    static int getModuleCount() {
      Pointer<Int> pCount = calloc();
      try {
        var err = faceSDK.id3FaceLicense_GetModuleCount(pCount);
        if (err != FaceError.success.value) {
          throw FaceException(err);
        }
        final vCount = pCount.value;
        return vCount;
      } finally {
        calloc.free(pCount);
      }
    }