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