from collections import Counter n=int(input()) a=list(map(int,input().split())) print(list(Counter(a).values()).count(1))