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