public static Counters sum ( Counters a , Counters b ) { Counters counters = new Counters ( ) ; counters . incrAllCounters ( a ) ; counters . incrAllCounters ( b ) ; return counters ; }
Convenience method for computing the sum of two sets of counters .