#include <bits/stdc++.h>
using namespace std;

int main() {
  int n;
  int h;
  int max = -1;
  int res = 0;
  for (int i = 0; i < n; i++) {
    cin >> h;
    if (max <= h) {
      res++;
    }
    max = max(max, h);
  }
  cout << res << endl;
}
