def get_total_num_policies(data):
    """Returns a dictionary of US state id and the total number of state-level policies as key-value pairs.

    Parameters:
        data (list): a list of dictionaries where each dictionary is formed from the data.

    Returns:
        state_id_2_policy_counts (dict): a dictionary of US state id and the total number of state-level policies as key-value pairs
    """

    state_id_2_policy_counts = {}
    for row in data:
        if row['policy_level'] == 'state' and row['start_stop'] == 'start':
            if row['state_id'] not in state_id_2_policy_counts:
                state_id_2_policy_counts[row['state_id']] = 1
            else:
                state_id_2_policy_counts[row['state_id']] += 1

    return state_id_2_policy_counts