#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, c;
  int cnt = 1, lst;
  cin >> n >> c >> lst;
  while (--n) {
    int crt;
    cin >> crt;
    if (crt - lst > c)
      cnt = 1;
    else
      cnt++;
    lst = crt;
  }
  cout << cnt << endl;
}
