code: private static int getDoubleBondNumber(IAtomContainer container) {
          int doubleNumber = 0;
          for (IBond bond : container.bonds()) {
              if (bond.getOrder().equals(IBond.Order.DOUBLE) || bond.getOrder().equals(IBond.Order.TRIPLE))
                  doubleNumber++;
          }
          return doubleNumber;
      }
docs: Extract the number of bond with superior ordre.
  
  @param container The IAtomContainer
  @return          The number