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