#include <bits/stdc++.h>
using namespace std;
int n, score = 1, f = 1;
int main() {
  cin >> n;
  int h[n];
  for (int i = 0; i < n; i++) cin >> h[i];
  if (h[0] <= h[1]) score++;
  for (int i = 2; i < n; i++) {
    if (f == 1) {
      if (h[i] >= h[i - 1]) {
        score++;
        f == 1;
      } else
        f == 0;
    } else {
      for (int k = i - 1; k > 0; i--) {
        if (h[i] >= h[k])
          f == 1;
        else {
          f == 0;
          break;
        }
      }
      if (f == 0)
        f == 0;
      else {
        score++;
        f == 1;
      }
    }
  }
  cout << score;
  return 0;
}
