def _get_update_parent_dict(parent_record: dict, nr_of_children: int, spouses: list):
    """
    Increment the married counter, add the nr of children and replace the existing
    spouses with the spouses list passed in.
    :param parent_record: the parent record for the parent currently under consideratio n
    :param nr_of_children: a scalar number of children in this current family iteration
    :param spouses: currently just a pass through to build the dictionary
    :return: a dictionary containing the updated fields *only*, i.e. 'married_count', 'children_count'
    and 'spouses'
    """
    married_count = 1
    if 'married_count' in parent_record:
        married_count += parent_record['married_count']
    children_count = nr_of_children
    if 'children_count' in parent_record:
        children_count += parent_record['children_count']

    update_dict = {'married_count': married_count,
                   'children_count': children_count,
                   'spouses': spouses}

    return update_dict