#include<stdio.h>
#define MAX 100000

int main(){
 int n,i;
 int a[MAX];
 int d[MAX]={0};

 scanf("%d",&n);
 d[0]=1;
 for(i=0;i<n;i++){

     scanf("%d",&a[i]);

     if(i>0){
        if(a[i]>a[i-1])d[i]=d[i-1]+1;
        else d[i]=d[i-1];
     }

 }

 printf("%d\n",d[n-1]);

return 0;
}
