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