#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int x[n];
  int cont = 1;
  int y = 0;
  for (int i = 1; i <= n; i++) {
    cin >> x[i];
  }
  for (int j = 0; j < n; j++) {
    if (x[cont] <= x[j]) y++;
    cont++;
  }
  cout << y;
  return 0;
}
