#include <iostream>
using namespace std;

int main(){
 int n = 0, num = 0, cnt = 0;
 cin >> n;
 int arr[n];
 while(cnt--){
   cin>>arr[cnt];
   ++cnt;
 }
 int prev = arr[0]
 int ans = 0;
 for(int i = 1; i < sizeof(arr)/sizeof(arr[0]); ++i){
  	 if(prev<=arr[i]){
       ans++;
     }
 }
 cout<<ans;
 return 0; 
}