code: private int getAromaticCarbonsCount(IAtomContainer ac, IAtom atom) {
          List<IAtom> neighbours = ac.getConnectedAtomsList(atom);
          int carocounter = 0;
          for (IAtom neighbour : neighbours) {
              if (neighbour.getSymbol().equals("C") && neighbour.getFlag(CDKConstants.ISAROMATIC)) {
                  carocounter += 1;
              }
          }
          return carocounter;
      }
docs: Gets the aromaticCarbonsCount attribute of the XLogPDescriptor object.
  
  @param  ac    Description of the Parameter
  @param  atom  Description of the Parameter
  @return       The aromaticCarbonsCount value