from collections import Counter N = int(input()) A = list(map(int, input().split())) d = Counter(A) print(list(d.values()).count(1))