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