def get_interactions(links, nodes):
    """
    Gets the interactions count for all nodes in the social network
    :param links: List of all links in the network
    :param nodes: List of all nodes in the network
    :return: Dict
        A dictionary of the form {character: number of interactions}
    """
    interactions = {}
    for i in range(len(nodes)):
        interactions[i] = 0
    for link in links:
        interactions[link['source']] += 1
        interactions[link['target']] += 1
    return interactions