#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <cstdio>
#include <math.h>
#include <string>
#include <algorithm>
using namespace std;
int n, c;
int ans;
int temp[100000 + 5];
int main() {
scanf("%d %d", &n, &c);
for (int i = 1;i <= n;++i) {
scanf("%d", &temp[i]);
}
for (int i = 1;i <= n;++i) {
if (temp[i] - temp[i - 1] <= c) {
ans++;
}
else {
ans = 0;
}
}
printf("%d\n", min((ans + 1), n));
return 0;
}