#include <bits/stdc++.h>
using namespace std;
const int INF = 1 << 30;
const int MOD = 1e9 + 7;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int n;
  cin >> n;
  vector<int> h(n);
  for (int i = 0; i < n; i++) cin >> h[i];
  int ans = 0;
  int a = h[0];
  int b = h[1];
  if (a <= b) ans++;
  for (int i = 2; i < n; i++) {
    if (a <= h[i] && b <= h[i] && h[i - 1] <= h[i]) ans++;
  }
  cout << ans + 1 << endl;
  return 0;
}
