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