#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  int x = 1;
  cin >> n;
  int h[n];
  for (int i = 0; i < n; i++) {
    cin >> h[i];
  }
  int max = h[0];
  for (int j = 1; j < n; j++) {
    if (h[j] >= max) {
      max = h[j];
      x++;
    } else {
      break;
    }
  }
  cout << x;
}
