#include <bits/stdc++.h>
using namespace std;
int main() {
  int c, n, p, h;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> h;
    if (c < h) {
      c = h;
      p++;
    }
  }
  cout << p << "\n";
  return 0;
}
