// Justin Almazan
// 6/12/2025
// Solution to 2025 CS SI UCF Contest Problem: Off-World Records
// https://open.kattis.com/problems/offworldrecords

#include <bits/stdc++.h>
using namespace std;

int main() {

    // Get first few parameters as input
    int numHeights, curRecord, prvRecord;
    cin >> numHeights >> curRecord >> prvRecord;

    // Keeps track of the # of times the record has changed
    int numRecordChanges = 0;

    // Loop over all new heights
    while (numHeights--) {

        // Get the height jumped by the next person
        int nxtHeight;
        cin >> nxtHeight;

        // If this height is greater than the sum of the
        // current and previous record...
        if (nxtHeight > curRecord + prvRecord) {
            
            // Increase res by 1
            numRecordChanges++;

            // Save changes to the records
            prvRecord = curRecord;
            curRecord = nxtHeight;
        }
    }

    // Print the number of changes
    cout << numRecordChanges << endl;

    return 0;
}