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