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