from collections import defaultdict input() d = defaultdict(int) for i in map(int, input.split()): d[i] += 1 print(len(1 for i in d.values() if i == 1))