code: private int getDoubleBondedCarbonsCount(IAtomContainer ac, IAtom atom) {
          List<IAtom> neighbours = ac.getConnectedAtomsList(atom);
          IBond bond;
          int cdbcounter = 0;
          for (IAtom neighbour : neighbours) {
              if (neighbour.getSymbol().equals("C")) {
                  bond = ac.getBond(neighbour, atom);
                  if (bond.getOrder() == IBond.Order.DOUBLE) {
                      cdbcounter += 1;
                  }
              }
          }
          return cdbcounter;
      }
docs: Gets the doubleBondedCarbonsCount attribute of the XLogPDescriptor object.
  
  @param  ac    Description of the Parameter
  @param  atom  Description of the Parameter
  @return       The doubleBondedCarbonsCount value