#include <bits/stdc++.h>
using namespace ::std;
int main() {
  int N;
  cin >> N;
  vector<int> H;
  for (int i = 0; i < N; i++) {
    int t;
    cin >> t;
    H.push_back(t);
  }
  int ans = 1;
  bool sea = true;
  for (int i = 0; i < N; i++) {
    for (int j = i + 1; j < N; j++) {
      if (H[j] < H[i]) {
        sea = false;
        break;
      }
    }
    if (sea) ans++;
    sea = true;
  }
  cout << ans << endl;
  return 0;
}
