N=int(input()) cnt={} for a in input().split(): if a not in cnt: cnt[a]=0 cnt[a]+=1 print(list(cnt.values()).count(1))