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