#include <bits/stdc++.h>
using namespace std;
int main(int argc, char *argv[]) {
  int n;
  cin >> n;
  int data[n];
  int i = 0;
  while (i < n) {
    cin >> data[i];
    i++;
  }
  int counter;
  int answer = 1;
  for (int x = 0; x < n; x++) {
    counter = 0;
    for (int y = 0; y < x; y++) {
      if (data[x] < data[y]) {
        counter++;
      }
    }
    if (x == counter) {
      answer++;
    }
  }
  cout << answer << endl;
  return 0;
}
