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