#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int count = 0;
  int ans = 0;
  vector<int> H(n);
  for (int i = 0; i <= (n - 1); ++i) {
    cin >> H[i];
  }
  for (int i = 1; i <= (n - 1); ++i) {
    for (int j = 0; j <= (i - 1); ++j) {
      if (H[j] <= H[i]) ++count;
    }
    if (count <= i) ans++;
  }
  cout << ans + 1 << endl;
  return 0;
}
