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