#include <bits/stdc++.h>
using namespace std;
int n;
int h[30];
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cin >> n;
  for (int i = 1; i <= n; i++) cin >> h[i];
  int sum = 0;
  for (int i = 2; i <= n; i++) {
    int cnt = 0;
    for (int j = i - 1; j >= 1; j--) {
      if (h[i] >= h[j]) cnt++;
    }
    if (cnt == i - 1) sum++;
  }
  cout << sum << endl;
  return 0;
}
