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