from typing import Sequence


def amount_unique_elements(seq: Sequence) -> int:
    """
    Amount different mutable/immutable elements

    >>> amount_unique_elements([1, [2], 1, [2], 3])
    4
    """
    return len({id(el) for el in seq})