def extract_amount(accident, base_key):
    """
    Get the amound of wounded/dead people from the accident data.
    """
    if not base_key in accident.keys():
        return 0
    else:
        if len(accident[base_key].keys()) == 2:
            return int(accident[base_key][f"{base_key}_min"])
        else:
            return int(list(accident[base_key].values())[0])