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