#include <bits/stdc++.h>
std::vector<std::string> sys_args(int argc, char** argv) {
  std::vector<std::string> args;
  for (int i = 1; i < argc; ++i) args.emplace_back(argv[i]);
  return args;
}
template <typename T>
void print(const T& vs) {
  std::cout << "[ ";
  for (auto&& v : vs) std::cout << v << " ";
  std::cout << "]" << std::endl;
}
std::vector<int> get_n_vector(void) {
  int n, h;
  std::vector<int> hs;
  std::cin >> n;
  for (int i = 0; i < n; ++i) {
    std::cin >> h;
    hs.emplace_back(h);
  }
  return hs;
}
using namespace std;
int main(int argc, char** argv) {
  auto hs = get_n_vector();
  print(hs);
  int hotels = 0, maxh = 0;
  vector<int> maxlist;
  for (auto&& h : hs) {
    if (maxh < h) maxh = h;
    maxlist.emplace_back(maxh);
  }
  for (size_t i = 0; i < maxlist.size(); ++i) {
    if (maxlist[i] <= hs[i]) hotels++;
  }
  cout << hotels << endl;
  ;
  return 0;
}
