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