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