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