#include <bits/stdc++.h>
using namespace std;
const int Inf = 100100100;
const double EPS = 1e-9;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int n;
  int max;
  int count = 1;
  int i, j;
  cin >> n;
  int h[n];
  for (int i = 0; i < (int)n; ++i) {
    cin >> h[i];
  }
  max = h[0];
  for (int i = 1; i < (int)n; ++i) {
    if (h[i - 1] < h[i] && max <= h[i]) {
      count++;
    }
  }
  cout << count << '\n';
  return 0;
}
