n = int(input()) *a, = map(int,input().split()) from collections import Counter d = Counter(a) print(sum(1 for k,v in d.items() if v==1))