#include <bits/stdc++.h>
int main(void) {
  int result, n;
  scanf("%d\n", &n);
  int in[n];
  for (int i = 0; i <= n; i++) {
    scanf("%d ", &in[i]);
    if (in[0] <= in[i]) {
      result++;
    }
  }
  printf("%d", result);
  return 0;
}
