import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines from collections import Counter N,*A = map(int,read().split()) counter = Counter(A) answer = sum(x == 1 for x in counter.values()) print(answer)