.. index:: 
  !FaceCandidateList.getCount Method
  
.. _id3_face_face_candidate_list_get_count_class_method:

===============================================================================
FaceCandidateList.getCount Method
===============================================================================

Module: :ref:`FaceCandidateList<id3_face_face_candidate_list_class>`

Definition
----------

Gets the number of elements in the FaceCandidateList object.


.. tab-set::

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

      .. code:: Python

        get_count(self) -> int

      **Returns**

        .. line-block::

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

      **Exceptions**

        .. line-block::

          :ref:`FaceException<id3_face_face_exception>`
          An error has occurred during Face Library execution.


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

      .. code:: Dart

        int getCount()

      **Returns**

        .. line-block::

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

      **Exceptions**

        .. line-block::

          :ref:`FaceException<id3_face_face_exception>`
          An error has occurred during Face Library execution.


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

      .. code:: C#

        public int GetCount()

      **Returns**

        .. line-block::

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

      **Exceptions**

        .. line-block::

          :ref:`FaceException<id3_face_face_exception>`
          An error has occurred during Face Library execution.


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

      .. code:: Java

        public int getCount() throws FaceException

      **Returns**

        .. line-block::

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

      **Exceptions**

        .. line-block::

          :ref:`FaceException<id3_face_face_exception>`
          An error has occurred during Face Library execution.


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

      .. code:: Swift

        public func getCount() throws -> Int32

      **Returns**

        .. line-block::

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

      **Exceptions**

        .. line-block::

          :ref:`FaceException<id3_face_face_exception>`
          An error has occurred during Face Library execution.


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

      .. code:: C

        int id3FaceCandidateList_GetCount (
            ID3_FACE_CANDIDATE_LIST hFaceCandidateList, 
            int * count)

      **Parameters**

        .. line-block::

          ``hFaceCandidateList`` :ref:`ID3_FACE_CANDIDATE_LIST<id3_face_face_candidate_list_class>`
          :guilabel:`in` Handle to the FaceCandidateList object.

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


      **Returns**

        .. line-block::

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


