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