I think this could be "map.getOrElse(key, 0)"