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