#include <bits/stdc++.h>
using namespace std;
int main() {
  int num;
  cin >> num;
  int height[200];
  for (int i = 1; i < (num + 1); num++) {
    cin >> height[i - 1];
  }
  int count = 0;
  int max_height = 0;
  for (int i = 1; i < (num + 1); num++) {
    if (height[i - 1] >= max_height) {
      max_height = height[i - 1];
      count++;
    }
  }
  cout << count << endl;
}
