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