#include <bits/stdc++.h>
using namespace std;

int a[1007];

signed main(){

	int n,m;
	cin >> n >> m;

	for(int i = 0; i < m; i++){
		int b;
		cin >> b;
		a[b] = 1;
	}

	int cnt = 0;
	for(int i = 1; i <= m; i++){
		if(a[i] == 0) cnt++;
	}
	cout << cnt << endl;

	return 0;
}

