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