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