.. # split from OEMolPropFunctions.rst:115

.. include:: ../substitutions

.. oe:namespace:: OEMolProp

.. meta::
   :keywords: OEGetAromaticRingCount

.. _OEMolProp_OEGetAromaticRingCount:

.. oe:function:: OEGetAromaticRingCount

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

      .. oe:api::

         unsigned OEGetAromaticRingCount(const OEChem::OEMolBase& mol)

   .. oe:language:: python

      .. oe:api:: python

         OEGetAromaticRingCount(mol: Union[OEGraphMol,OEMol,OEQMol]) -> int

   Returns the number of aromatic rings in a molecule as defined in
   [Ritchie-2009]_. The article describes the method as the following:

   ::

      The terminology 'number of aromatic rings' (or aromatic ring
      count) is used generically and encompasses both benzenoid
      aromatic rings and heteroaromatics (including, e.g. pyridine and
      imidazole). ... Each ring in a fused system is counted
      individually; thus, indole and naphthalene are each defined as
      having two aromatic rings.

.. some depictions would really help clear up some corner cases. check
.. out FogBugz case 6768

