#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> vec(n);
  for (int i = 0; i < (n); ++i) {
    cin >> vec.at(i);
  }
  int max = 0;
  int num = 0;
  for (int i = 0; i < (n); ++i) {
    if (i == 0) {
      max = vec.at(i);
      continue;
    }
    if (vec.at(i) >= max) {
      max = vec.at(i);
      num++;
    }
  }
  cout << num << endl;
}
