import collections n = int(input()) a = list(map(int,input().split())) c = collections.Counter(a) cnt = 0 for i,j in c.most_common(): if j==1: cnt += 1 print(cnt)