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