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