#include <iostream>
using namespace std;
int main()
{
int n;
cin >> n;
int Max = 0;
int Count = 0;
int IndexCount = -1;
int Students[101] = {0,};
for (int i = 0; i < n; ++i)
{
cin >> Students[i];
++IndexCount;
}
for (int i = 0; Students[i] != '\0'; ++i)
{
Max = Students[i];
bool IsCount = true;
if (i == IndexCount)
{
break;
}
for (int j = i + 1; Students[j] != '\0'; ++j)
{
if (Max < Students[j])
{
IsCount = false;
break;
}
}
if (IsCount == true)
{
IsCount = true;
Count++;
}
}
cout << Count << endl;
}