from collections import Counter N = int(input()) a = list(map(int, input().split())) c = Counter(a) ans = 0 for i in c.values(): if i == 1 : ans += 1 print(ans)