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