#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, x;
  cin >> N >> x;
  vector<int> A(N);
  for (int i = 0; i < N; i++) {
    cin >> A[i];
  }
  sort(A.begin(), A.end());
  int count = 0;
  for (int i = 0; i < N; i++) {
    if (x - A[i] >= 0) count++;
  }
  if (x > 0) count--;
  cout << count << endl;
}
