#include <bits/stdc++.h>
using namespace std;
int main() {
  int res = 0;
  int num;
  cin >> num;
  vector<int> h;
  h.resize(num);
  for (int i = 0; i < (int)(num); ++i) cin >> h[i];
  int maxh = -1;
  for (int i = 0; i < (int)(num); ++i) {
    if (i == 0) {
      res++;
      maxh = h[i];
      continue;
    }
    if (maxh <= h[i] && h[i - 1] <= h[i])
      res++;
    else if (maxh < h[i]) {
      maxh = h[i];
    }
  }
  cout << res << endl;
  return 0;
}
