Design an algorithm in Python to count all unique elements in a list.
[1, 1, 2, 3, 3, 4, 5, 6]
def count_unique(lst):
    unique_count = 0
    seen = set()
    for element in lst:
        if element not in seen:
            unique_count += 1
            seen.add(element)
    return unique_count