#!/usr/bin/python # -*- coding: utf-8 -*- ### INPUT ### N = int(raw_input()) arys= map(int, raw_input().split()) list = set(arys) arys.sort() ans = 0 for i in list: if arys.count(i) == 1: ans += 1 print ans