#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n, h, hmax = 0, i, ans = 0;
  cin >> n;
  for (i = 0; i < n; i++) {
    cin >> h;
    if (h > hmax) {
      ans++;
      hmax = h;
    }
  }
  cout << ans << endl;
  return 0;
}
