N = int(input()) l = list(map(int, input().split())) count = 0 for li in l: if l.count(li) == 1: count += 1 print(count)