.. include:: ../substitutions

.. oe:namespace:: OEChem

.. meta::
   :keywords: OESmilesAtomCount

.. oe:function:: OESmilesAtomCount

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

      .. oe:api::

         unsigned int OESmilesAtomCount(const char* str)
         unsigned int OESmilesAtomCount(const std::string& str)

   .. oe:language:: python

      .. oe:api:: python

         OESmilesAtomCount(str: str) -> int

   This function efficiently determines the number of **heavy** atoms in a SMILES string,
   without converting it into an :ref:`OEMolBase <OEChem_OEMolBase>`.


