#include <iostream>
int main(){
  int a;
  int b[20];
  int cnt,before;
  cin >> a;
  for(int i=0;i<a;i++){
    cin >> b[i];
  }
  cnt=1;
  before=b[0];
  for(int i=1;i<a;i++){
    if(before < b[i]){
      cnt++;
    }
    before == b[i];
  }
  cout << cnt <<endl;
  return 0;
}
