def number_of_authors(publications: list[dict]) -> int:
    """Computes the number of different authors.
    Authors are differentiated by their ID.

    :param: a list of publications.

    :return: the number of authors.
    """

    authors = set()
    for publication in publications:
        authors.update(x['id'] for x in publication['authors'])

    return len(authors)