n = gets arr = gets.chomp.split.group_by{|e| e}.values.sort_by{|e| e.length} ans = 0 arr.each { |k| ans += 1 if k.length == 1 } puts ans