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

int main(){
int N;
 cin << N;
  vector<int> vec(N);
for (int i = 0; i < N; i++) {
  cin >> vec.at(i);
}
int j = 0;
int k = vec.at(j) 
int count = 0;
while(N > j){
  if(k <= vec.at(j+1)){
  count++;
  k = vec.at(j+1);
  }
j++;
}
cout << count << endl;
}
