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