#coding: utf-8 ##yuki_182 n=int(raw_input()) s=[] s=raw_input().split() cnt=0 for i in xrange(len(s)): if s.count(s[i])==1: cnt+=1 print cnt