#include <bits/stdc++.h>
using namespace std;
int main() {
  vector<int> data(25);
  int result = 0;
  int mounum = 0;
  int count = 0;
  vector<int> biggest(25);
  cin >> mounum;
  for (int i = 0; i < mounum; i++) {
    cin >> data.at(i);
  }
  biggest.at(0) = data.at(0);
  for (int i = 1; i < mounum; i++) {
    if (data.at(i) >= data.at(i - 1)) {
      biggest.at(i) = data.at(i);
    } else {
      biggest.at(i) = biggest.at(i - 1);
    }
  }
  for (int i = 0; i < mounum; i++) {
    if (data.at(i) >= biggest.at(i)) {
      count++;
    }
  }
  cout << count << endl;
}
