you can do `inc = segmentDocCounts.set(i, 0)` to get & reset at the same time