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

int main() {
	int N;
	cin >> N;
	vector <int> height(N);
	bool ans = true;
	int count = 0;
	for(int i = 0; i < N; i++) {
		cin >>height[i];
	}
	int max = 0;
	int ans = 0;
	for(int i = 0;i < N;i++){
	if(max <= height[i]){
		max = height[i];
        ans++;
	}
	}
cout << count << endl;
}