Okay just checked, CounterMap's add function does that already. I had forgotten