n = input() inp = input().split() dic = {} for i in inp: if i not in dic: dic[i] = 1 else: dic[i] += 1 print(list(dic.values()).count(1))