Make sure map value exists and is initialized before incrementing.