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