#include<iostream>
#include<array>
#include<string>
using namespace std;

int main() {
	int num;
	cin >> num;
	int mou;
	int max = 0;
	int see = 0;
	int f = 0;
	int loop = 0;
	int max = 0;
	while (num--) {
		cin >> mou;
		if (mou > max && mou >= f)
		{
			see++;
		}
		if (loop == 0) {
			f = mou;
		}
		else if(mou>=max){
			max = mou;
		}
		loop++;
	}
	cout << see << endl;
}