#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  int count = 0;
  int flag = 0;
  cin >> N;
  vector<int> a(N);
  for (int i = 0; i < N; i++) {
    cin >> a[i];
  }
  for (int i = 1; i < N; i++) {
    for (int j = i - 1; j >= 0; j--) {
      if (a[i] > a[j]) {
        flag = 1;
      } else {
        flag = 0;
      }
    }
    if (flag = 1) {
      count++;
    }
  }
  cout << count + 1 << endl;
}
