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