#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];
  cout << endl;
  int ans = 1;
  for (int i = 2; i < N + 1; i++) {
    if ((H[i - 1] - H[0] >= 0) && (H[i - 1] - H[1] >= 0) &&
        (H[i - 1] - H[i - 2] >= 0)) {
      ans++;
    }
  }
  cout << ans << endl;
  return 0;
}
