#include <iostream>
#include <algorithm>
using namespace std;

int main() {
  int N;
  int H[110];
  cin >> N;
  for (int i = 0; i < N; ++i) cin H[i];

  int hotel = 1;
  int max = H[0];
  for (int i = 0; i < N-1; ++i) {
    if (H[i+1] > max) {
      ++hotel;
      max = H[i+1];
    }
  }
  cout << hotel << endl;
}
