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