#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, c = 1;
  cin >> n;
  std::vector<int> v(n, 0);
  for (int i = 0; i < n; ++i) {
    cin >> v[i];
  }
  for (int i = 1; i < n; ++i) {
    if (v[0] >= v[i]) {
      c++;
    }
  }
  cout << c << "\n";
  return 0;
}
