#include using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(nullptr); int N,K; cin >> N >> K; long long back = -2e9,answer = 0; while(N--){ long long x; cin >> x; if(x-back >= K) answer++,back = x; } cout << answer << endl; }