code: public static double getBondOrderSum(IAtomContainer container, IAtom atom) {
          double count = 0;
          for (IBond bond : container.getConnectedBondsList(atom)) {
              IBond.Order order = bond.getOrder();
              if (order != null) {
                  count += order.numeric();
              }
          }
          return count;
      }
docs: Returns the sum of the bond order equivalents for a given IAtom. It
  considers single bonds as 1.0, double bonds as 2.0, triple bonds as 3.0,
  and quadruple bonds as 4.0.
  
  @param  atom  The atom for which to calculate the bond order sum
  @return       The number of bond order equivalents for this atom