#include using namespace std; const long long INF = 1e18; int main() { int N, K; cin >> N >> K; vector X(N); for (int i = 0; i < N; i++) { cin >> X[i]; } int ans = 0; long long tmp_X = -INF; for (int i = 0; i < N; i++) { if (X[i] >= tmp_X + K) { tmp_X = X[i]; ans++; } } cout << ans << endl; }