N = int(raw_input()) A = map(int,raw_input().split()) c = 0 for i in range(N): if A.count(A[i]) == 1: c += 1 print c