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