code: public static int getTotalMonomerCount(PolymerNotation polymer) {
      int count = 0;
      for (MonomerNotation element : polymer.getPolymerElements().getListOfElements()) {
        count += getMonomerCountFromMonomerNotation(element);
      }
      return count;
    }
docs: method to get the total monomer count of one PolymerNotation
  
  @param polymer PolymerNotation
  @return monomer count