#include using namespace std; int main() { int N, K, Ans = 1, Pin; cin >> N >> K >> Pin; for (int i = 1; i < N; i++) { int X; cin >> X; if (X - Pin >= K) { Ans++; Pin = X; } } cout << Ans << endl; }