.. index:: 
  !DocumentInfoDictionary.getCount Method
  
.. _id3_document_document_info_dictionary_get_count_class_method:

===============================================================================
DocumentInfoDictionary.getCount Method
===============================================================================

Module: :ref:`DocumentInfoDictionary<id3_document_document_info_dictionary_class>`

Definition
----------

Gets the number of elements in the DocumentInfoDictionary object.


.. tab-set::

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

      .. code:: Python

        get_count(self) -> int

      **Returns**

        .. line-block::

          ``int``
          Number of elements in the DocumentInfo object.

      **Exceptions**

        .. line-block::

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


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

      .. code:: Dart

        int getCount()

      **Returns**

        .. line-block::

          ``int``
          Number of elements in the DocumentInfo object.

      **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 int GetCount()

      **Returns**

        .. line-block::

          ``int``
          Number of elements in the DocumentInfo object.

      **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 int getCount() throws DocumentException

      **Returns**

        .. line-block::

          ``int``
          Number of elements in the DocumentInfo object.

      **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 func getCount() throws -> Int32

      **Returns**

        .. line-block::

          ``Int``
          Number of elements in the DocumentInfo object.

      **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 id3DocumentInfoDictionary_GetCount (
            ID3_DOCUMENT_INFO_DICTIONARY hDocumentInfoDictionary, 
            int * count)

      **Parameters**

        .. line-block::

          ``hDocumentInfoDictionary`` :ref:`ID3_DOCUMENT_INFO_DICTIONARY<id3_document_document_info_dictionary_class>`
          :guilabel:`in` Handle to the DocumentInfoDictionary object.

          ``count`` int *
          :guilabel:`out` Number of elements in the DocumentInfo object.


      **Returns**

        .. line-block::

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


