This takes the out parameter countMap and fills it with the count of how many times each RType was processed. The accompanying reset function can be used to reset the map to an empty state.
countMap
reset
This takes the out parameter
countMapand fills it with the count of how many times each RType was processed. The accompanyingresetfunction can be used to reset the map to an empty state.