#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int Mt_first = 0;
  int count = 0;
  for (int i = 0; i < N; ++i) {
    int H;
    cin >> H;
    if (Mt_first == 0) Mt_first = H;
    if (Mt_first <= H) ++count;
  }
  cout << count << endl;
}
