code: public static int getBondCount(IRingSet set) {
          int count = 0;
          for (IAtomContainer atomContainer : set.atomContainers()) {
              count += atomContainer.getBondCount();
          }
          return count;
      }
docs: Return the total number of bonds over all the rings in the colllection.
  
  @param set The collection of rings
  @return The total number of  bonds