input() nums = [int(x) for x in input().split()] num_type = set(nums) newly = 0 for num in num_type: if len([x for x in nums if x == num]) == 1: newly+=1 print(newly)