#include <bits/stdc++.h>
using namespace std;
int main() {
  int num, first = 0, second = 0, count = 0, end = 0;
  ;
  cin >> num;
  for (int i; i < num; i++) {
    cin >> second;
    if (first <= second) {
      count++;
      first = second;
    } else {
      end = count;
    }
  }
  if (end == 0) {
    end = count;
  }
  cout << end << endl;
  return 0;
}
