#include <bits/stdc++.h>
using namespace std;
signed long long int a[100005];
multiset<signed long long int> ms;
multiset<signed long long int>::iterator it;
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  signed long long int n;
  cin >> n;
  signed long long int ans = 1;
  for (signed long long int i = 0; i < n; i++) {
    cin >> a[i];
  }
  for (signed long long int i = 1; i < n; i++) {
    if (a[i] >= a[0]) {
      ans++;
    }
  }
  cout << ans;
}
