#include <bits/stdc++.h>
using namespace std;
int main(int argc, char *argv[]) {
  int i, j, n, m, l, c = 0;
  cin >> n;
  cin >> m;
  c++;
  for (i = 0; i < n; i++) {
    cin >> l;
    if (m > l)
      continue;
    else {
      c++;
      m = l;
    }
  }
  cout << c << endl;
}
