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