import java.util.*; public class Main { public static void main(String[] args){ // TODO 自動生成されたメソッド・スタブ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); HashMap<Integer, Integer> map = new HashMap<>(); for(int i=0;i<n;i++){ int a = sc.nextInt(); if(!map.containsKey(a)){ map.put(a, 1); }else{ map.put(a, map.get(a)+1); } } int ans=0; for (Integer v : map.keySet()) { if(map.get(v)==1) ans++; } System.out.println(ans); } }