#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, H[100];
  cin >> N;
  for (int i = 0; i < N; ++i) cin >> H[i];
  int ans = 1;
  int i = 2;
  while (i < N, ++i)
    ;
  if ((H[1] <= H[i]) && (H[2] <= H[i]) && (H[i - 1] <= H[i])) {
    ans++;
  } else
    ++i;
  cout << ans << endl;
  return 0;
}
