#include <bits/stdc++.h>
using namespace std;
int main() {
  int ans = 0;
  int N;
  cin >> N;
  int H[N];
  for (int i = 0; i < N; i++) {
    cin >> H[i];
  }
  int a = 1;
  while (a >= 1) {
    int i = 0;
    if (i = 0) {
      ans++;
      i++;
      a = 1;
    } else if (H[i - 1] <= H[i]) {
      ans++;
      i++;
      a = 1;
    } else {
      a = 0;
    }
  }
  cout << ans << endl;
  return 0;
}
