#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, c;
  cin >> n >> c;
  int res = 0, temp = 0, sec = 0;
  for (int i = 1; i <= n; i++) {
    cin >> sec;
    sec - temp > c ? (res = 1) : (res++);
    temp = sec;
  }
  cout << res << endl;
  return 0;
}
