#include <bits/stdc++.h>
using namespace std;
int main() {
  int count = 0, c = 0;
  for (int i = 0; i < 20; i++) {
    int h;
    cin >> h;
    if (h >= c) {
      count++;
    }
    c = h;
  }
  cout << count << endl;
}
