#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c, d;
  a = 0;
  b = 0;
  cin >> a;
  for (int i = 0; i < a; i++) {
    cin >> c;
    if (c >= b) {
      b = c;
      d++;
    }
  }
  cout << d << endl;
}
