from collections import Counter N, *A = map(int, open(0).read().split()) C = Counter(A) print(sum(1 for v in C.values() if v == 1))