#include <bits/stdc++.h>
using namespace std;
int main() {
  int num;
  cin >> num;
  int mou;
  int old = 0;
  int see = 0;
  int f = 0;
  int loop = 0;
  while (num--) {
    cin >> mou;
    if (mou >= old && mou >= f) {
      see++;
    }
    if (loop == 0) {
      f = mou;
    } else {
      old = mou;
    }
    loop++;
  }
  cout << see << endl;
}
