def number_to_weight(number_string):
    """
    Returns 1 if number_string is a single number, or high end - low end + 1 if
    number_string is a range.
    """
    if "-" in number_string:
        number_range = number_string.split("-")
        low = int(number_range[0])
        high = int(number_range[1])
        weight = high - low + 1
    else:
        weight = 1

    return weight