#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int h[N];
  int count = 0;
  int h_max = h[0];
  for (int i = 0; i < N; i++) {
    if (h[i] >= h_max) count += 1;
    h_max = max(h_max, h[i]);
  }
  cout << count << endl;
  return 0;
}
