# No.182 新規性の虜 n = int(input()) a = list(map(int, input().split())) c = {} for i in a: if i not in c: c[i] = 1 else: c[i] += 1 b = list(c.values()) print(b.count(1))