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