Counts events in different workers and get the sum


I would like to count how many events pass some of my analysis cuts.
How can I add those events from each of the workers, and get a final number?

I read at the forum that one way is to fill an histogram with “1” each time a cut is passed.
I have many cuts, and I would prefer to avoid filling so many histograms, is there any other option?



create one histogram with as many bins as cuts, fill bin1 for cut1, bin2 for cut2,…

Cheers, Axel.