.. # split from OESystemFunctions.rst:1921

.. include:: ../substitutions

.. oe:namespace:: OESystem

.. meta::
   :keywords: OENumContours

.. oe:function:: OENumContours

   .. oe:language:: c++ java csharp

      .. oe:api::

         unsigned int OENumContours(const OEGridAbstractBase& grid)

   .. oe:language:: python

      .. oe:api:: python

         OENumContours(grid: OEGridAbstractBase) -> int

   Returns the number of contours stored on 'grid' (:ref:`OEGridAbstractBase <OESystem_OEGridAbstractBase>`).

   .. seealso::

      * :oe:func:`OESystem::OEAddContour`
      * :oe:func:`OESystem::OEGetContourColor`
      * :oe:func:`OESystem::OEGetContourLevel`

