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