#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> vecH;
  for (int i = 0; i < N; i++) {
    int H;
    cin >> H;
    vecH[i] = H;
  }
  int c = 1;
  vector<int> vec(1);
  vec[0] = vecH[0];
  for (int i = 0; i < N; i++) {
    vec.push_back(vecH[i + 1]);
    sort(vec.begin(), vec.end());
    if (vecH[i + 1] == vec[i + 1]) {
      c++;
    }
  }
  cout << c << endl;
}
