#include <bits/stdc++.h>
using namespace std;
const long long int INF = 1LL << 60;
bool pairCompare(const pair<double, long long int>& firstElof,
                 const pair<double, long long int>& secondElof) {
  return firstElof.second < secondElof.second;
}
long long int gcd(long long int a, long long int b) {
  if (a % b == 0)
    return (b);
  else
    return (gcd(b, a % b));
}
long long int junnretu(long long int n) {
  long long int ans = 1;
  for (long long int i = 1; i <= n; i++) {
    ans *= i;
  }
  return ans;
}
int main() {
  long long int n, max = 0, ans = 0;
  cin >> n;
  for (long long int i = 0; i < n; i++) {
    long long int x;
    cin >> x;
    if (x > max) {
      ans++;
      max = x;
    }
  }
  cout << ans << endl;
  return 0;
}
