n = int(input()) l = list(map(int, input().split())) c = 0 for i in l: x = l.count(i) if x == 1: c += 1 print(c)