N = int(raw_input()) input = sorted(map(int, strip(raw_input()).split())) cnt = 0 for i in set(input): if input.count(i) == 1: cnt += 1 print cnt