N = int(input().strip()) A = input().strip().split(' ') dic = {} for i in A: try: dic[i] += 1 except: dic[i] = 1 print(sum([1 for i in dic.values() if i == 1]))