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