#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int h[n];
  bool a;
  int ans = 0;
  for (int i = 0; i < n; i++) {
    cin >> h[i];
    for (int j = 0; j <= i; j++) {
      if (h[j] > h[i]) a = false;
      break;
    }
    if (a != false) ans++;
  }
  cout << ans << endl;
  return 0;
}
