#include <bits/stdc++.h>
using namespace std;
int _I() {
  int x;
  scanf("%d", &x);
  return x;
}
long long int _L() {
  long long int x;
  scanf("%lld", &x);
  return x;
}
int main() {
  int n = _I(), c = _I();
  int A[n + 3];
  for (int i = 0; i < n; i++) A[i] = _I();
  int ans = 1;
  for (int i = 1; i < n; i++) {
    if (A[i] - A[i - 1] <= c)
      ans++;
    else
      ans = 1;
  }
  cout << ans;
  return 0;
}
