#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int N, K;
  cin >> N >> K;
  vector<long long int> A(N);
  for (long long int i = 0; i < N; i++) {
    cin >> A.at(i);
  }
  long long int ans = N, combo = 0, gap = 0;
  for (long long int i = 0; i < N - 1; i++) {
    long long int now = A.at(i + 1) - A.at(i);
    gap += now;
    if (abs(gap) > K) {
      combo++;
      if (i == N - 2) {
        ans--;
      }
    } else {
      ans -= combo;
      combo = 0;
      gap = 0;
    }
  }
  cout << ans << endl;
}
