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