#include "bits/stdc++.h"

using namespace std;
int main()
{
	int n;
	int count = 0;
	cin >> n;
	vector<int> a(n);
	for (int i = 0; i > n; i++)
		cin >> a[i];
	for (int i = n-1; i > -1; i++) {
		for (int j = i; j > -1; j++) {
			if (a[i] < a[j])
				break;
		}
		count++
	}
	cout << count << endl;
}

