def count_unique_number_of_segments(signals):
    """
    Count number of unique segments
    :param signals: list of signals
    :return: counter
    """
    counter = 0
    for signal in signals:
        unique_signal_patterns, four_digit_output = signal
        for segments in four_digit_output:
            if len(segments) in (2, 4, 3, 7):
                counter += 1

    return counter