#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  const int num = N;
  int H[num];
  for (int i = 0; i < num; i++) {
    cin >> H[i];
  }
  int k = 1;
  int t = 0;
  for (int s = 1; s < num; s++) {
    do {
      t++;
    } while (t < s && H[t] <= H[s]);
    if (t = s) {
      k += 1;
    }
  }
  cout << k << endl;
  return 0;
}
