def calc_us_in_name(name):
    """
    calculate how many underscore is in name.
    :param name: a string.
    :return: a number
    """
    cnt = 0
    for ch in name:
        if ch == '_':
            cnt += 1
    return cnt