#include<iostream>
#include<algorithm>
#include<string>
#define int long long
using namespace std;
signed main() {
	int n, m, a, ans = 0; cin >> n >> m;
	for (int i = 0; i < m; i++) {
		cin >> a;
		if (a > m)ans++;
	}cout << ans << endl;
}
