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