#include <bits/stdc++.h>
using namespace std;
using P = pair<int, int>;
int main() {
  int N;
  cin >> N;
  vector<int> h(N);
  int cnt = 1;
  for (int i = 0; i < (int)(N); i++) {
    cin >> h[i];
    if (i != 0 && h[i - 1] <= h[i]) {
      if (h[i] >= h[0]) cnt++;
    }
  }
  cout << cnt << endl;
  return (0);
}
