.. index:: 
  !DocumentLicense.getModuleCount Method
  
.. _id3_document_document_license_get_module_count_class_method:

===============================================================================
DocumentLicense.getModuleCount Method
===============================================================================

Module: :ref:`DocumentLicense<id3_document_document_license_class>`

Definition
----------

Retrieves the number of modules in the license.


.. tab-set::

    .. tab-item:: Python
      :sync: Python

      .. code:: Python

        @staticmethod
        get_module_count() -> int

      **Returns**

        .. line-block::

          ``int``
          The number of modules in the license.

      **Exceptions**

        .. line-block::

          :ref:`DocumentException<id3_document_document_exception>`
          An error has occurred during Document Library execution.


    .. tab-item:: Dart
      :sync: Dart

      .. code:: Dart

        static int getModuleCount()

      **Returns**

        .. line-block::

          ``int``
          The number of modules in the license.

      **Exceptions**

        .. line-block::

          :ref:`DocumentException<id3_document_document_exception>`
          An error has occurred during Document Library execution.


    .. tab-item:: C#
      :sync: C#

      .. code:: C#

        public static int GetModuleCount()

      **Returns**

        .. line-block::

          ``int``
          The number of modules in the license.

      **Exceptions**

        .. line-block::

          :ref:`DocumentException<id3_document_document_exception>`
          An error has occurred during Document Library execution.


    .. tab-item:: Java
      :sync: Java

      .. code:: Java

        public static int getModuleCount() throws DocumentException

      **Returns**

        .. line-block::

          ``int``
          The number of modules in the license.

      **Exceptions**

        .. line-block::

          :ref:`DocumentException<id3_document_document_exception>`
          An error has occurred during Document Library execution.


    .. tab-item:: Swift
      :sync: Swift

      .. code:: Swift

        public static func getModuleCount() throws -> Int32

      **Returns**

        .. line-block::

          ``Int``
          The number of modules in the license.

      **Exceptions**

        .. line-block::

          :ref:`DocumentException<id3_document_document_exception>`
          An error has occurred during Document Library execution.


    .. tab-item:: C
      :sync: C

      .. code:: C

        int id3DocumentLicense_GetModuleCount (
            int * count)

      **Parameters**

        .. line-block::

          ``count`` int *
          :guilabel:`out` The number of modules in the license.


      **Returns**

        .. line-block::

          ``int``
          An error code.
          See :ref:`id3DocumentError<id3_document_document_error_enum>` file for the list of possible error codes.


