N = int(raw_input()) input = raw_input().strip().split() ans = {} for i in range(N): if ans.has_key(input[i]): input[i] += 1 else: input[i] = 1 print ans.values().count(1)