#include <bits/stdc++.h>
using namespace std;
int gcd(int a, int b) {
  while (b) {
    a %= b;
    swap(a, b);
  }
  return a;
}
int main() {
  int n, temp_highest = 0, ans = 0;
  cin >> n;
  vector<int> h(n);
  for (int i = 1; i <= n; i++) {
    cin >> h[i];
    if (temp_highest < h[i]) {
      ans++;
      temp_highest = h[i];
    }
  }
  cout << ans << endl;
  return 0;
}
