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