#include <iostream>
using namespace std;
int main() {
int n, a, count = 0, x;
cin >> n >> a;
while (n) {
cin >> x;
if (x % 2 == 0 && x > a) {
++count;
}
--n;
}
cout << count;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CglpbnQgbiwgYSwgY291bnQgPSAwLCB4OwoJY2luID4+IG4gPj4gYTsKCXdoaWxlIChuKSB7CgkJY2luID4+IHg7CgkJaWYgKHggJSAyID09IDAgJiYgeCA+IGEpIHsKCQkJKytjb3VudDsKCQl9CgkJLS1uOwoJfQoJY291dCA8PCBjb3VudDsKCXJldHVybiAwOwp9