#include <bits/stdc++.h>
using namespace std;
int main(void) {
  long long int i = 0, j, c = 0, p, h[1000010], n;
  string s;
  cin >> n;
  for (i = 0; i < n; i++) {
    cin >> h[i];
  }
  for (i = 1; i < n; i++) {
    if (h[0] <= h[i] && h[1] <= h[i] && h[i] >= h[i - 1]) {
      c++;
    }
  }
  cout << c + 1 << endl;
  return 0;
}
