#include <bits/stdc++.h>
using namespace std;
int in() {
  int x;
  scanf("%d", &x);
  return x;
}
long long lin() {
  long long x;
  scanf("%lld", &x);
  return x;
}
void printfv(vector<int> a) {
  int n = a.size();
  for (int i = 0; i < n; ++i) cout << a[i] << " ";
}
int main(void) {
  int n;
  cin >> n;
  int a[n];
  for (int i = 0; i < n; ++i) {
    cin >> a[i];
  }
  int count = 1, obs = a[0];
  for (int i = 1; i < n - 1; ++i) {
    if (obs <= a[i]) {
      obs = a[i];
      count++;
    }
  }
  cout << count;
  return 0;
}
