#include <bits/stdc++.h>
using namespace std;
string divide[4] = {"dream", "dreamer", "erase", "eraser"};
int main() {
  int N;
  cin >> N;
  vector<int> H(N);
  for (int i = 0; i < N; i++) {
    cin >> H[i];
  }
  bool high = false;
  int count = 0;
  for (int i = 0; i < N; i++) {
    if (H[0] <= H[i]) {
      count++;
    }
  }
  cout << count << endl;
}
