import java.io.IOException; import java.util.Arrays; public class Main { public static void main(String[] args) throws Exception { int N = nextInt(); int[] num = new int[10001]; for (int i = 0; i < N; i++) { num[nextInt()]++; } int ans = 0; for (int i = 0; i < num.length; i++) { if (num[i] == 1) { ans++; } } System.out.println(ans); } static int nextInt() { int c; try { c = System.in.read(); while (c != '-' && (c < '0' || c > '9')) c = System.in.read(); if (c == '-') return -nextInt(); int res = 0; while (c >= '0' && c <= '9') { res = res * 10 + c - '0'; c = System.in.read(); } return res; } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } return -1; } }