#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> H(N);
  for (int i = 0; i < N; ++i) cin >> H[i];
  int cnt = 0;
  for (int i = 0; i < N; ++i) {
    for (int k = 0; k <= i; ++k) {
      bool flag = false;
      if (H[0] <= H[k] && flag == false) {
      } else {
        flag = true;
      }
      if (k == i && flag == false) {
        cnt++;
      }
    }
  }
  cout << cnt << endl;
}
