N = int(input()) A = list(map(int,input().split())) NOVELTY = 0 for i in range(N) : a = A.count(A[i]) if a == 1 : NOVELTY += 1 print(NOVELTY)