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