n=input() b={} for i in map(int,raw_input().split()): if i in b: b[i]+=1 else: b[i]=1 print len([i for i in b if b[i]==1])