#include <bits/stdc++.h>
using namespace std;
int main() {
  std::ios_base::sync_with_stdio(false);
  int n, c, count = 1;
  cin >> n >> c;
  int* arr = new int[n];
  for (int i = 0; i < n; i++) cin >> arr[i];
  for (int i = 1; i < n; i++) {
    if ((arr[i] - arr[i - 1] > c))
      count = 1;
    else
      count++;
  }
  cout << count << endl;
}
