#include <bits/stdc++.h>
using namespace std;
int n, A[1000001], i, c;
int main() {
  cin >> n;
  cin >> A[0];
  for (i = 1; i < n; i++) {
    cin >> A[i];
    A[i] = A[i] - A[0];
    if (A[i] >= 0) c++;
  }
  cout << c + 1;
}
