#include <bits/stdc++.h>
using namespace std;
int main() {
  int ryokan;
  int height[20];
  cin >> ryokan;
  int count = 1;
  int heightMax = 0;
  for (long long int i = 0; i < ryokan; i++) {
    cin >> height[i];
  }
  for (long long int i = 0; i < ryokan - 1; i++) {
    heightMax = height[i];
    if (height[i + 1] >= heightMax) count++;
  }
  cout << count << endl;
  return 0;
}
