#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, H[100];
  cin >> N;
  for (int i = 0; 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 << endl;
  return 0;
}
