#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> h(n);
  int cnd = h[0];
  int cnt = 1;
  for (int i = 1; i < n; i++) {
    if (h[i] >= cnd) {
      cnt++;
      cnd = h[i];
    }
  }
  cout << cnt << endl;
  return 0;
}
