n = int(input()) l = list(map(int, input().split())) c = {} for i in l: if not i in c: c[i] = 1 else: c[i] += 1 l = list(c.values()) print(l.count(1))