#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 ans = 1;
  for (int i = 0; i < n; i++) {
    bool f = false;
    for (int j = i + 1; j < n; j++) {
      if (h[i] <= h[j])
        f = true;
      else
        break;
    }
    if (f) ans++;
  }
  cout << ans << endl;
}
