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