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