updating region_counters whenever a value is set to the map or if the map is cleared