#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const int MOD = (int)1e9 + 7;
const int INF = (int)1e9 + 1;
const ll LINF = (ll)1e18 + 1;
int main() {
  try {
    cin.tie(0);
    ios::sync_with_stdio(false);
    int N;
    std::cin >> N;
    vector<int> H(N);
    for (decltype(N) i = 0; i < N; i++) {
      std::cin >> H[i];
    }
    int ans = 1;
    for (int i = 1; i < N; i++) {
      if (H[i - 1] <= H[i] && H[0] <= H[i] && H[1] <= H[i]) {
        ans++;
      }
    }
    std::cout << ans << std::endl;
  } catch (const exception& e) {
    std::cout << e.what() << std::endl;
    exit(1);
  }
  return 0;
}
