#include <bits/stdc++>
using namespace std;

int main(){
  int val,i,Mt,inn;
  inn = 1;
  cin >> val;
  int hight[val];
  for(i=0;i<val;i++){
  	cin >> Mt;
    hight[i] = Mt;
  }
  for(i=0;i<val-1;i++){
    if(hight[i+1]>=hight[i]) {inn++;}
  }
  cout << inn << endl;
}