#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, l, i;
  cin >> n;
  int a[n];
  for (i = 0; i < n; i++) {
    cin >> l;
    a[i] = l;
  }
  int count = 0;
  for (i = 0; i < n; i++) {
    if (a[0] <= a[i]) {
      count++;
    }
  }
  cout << count << endl;
  return 0;
}
