n, k = map(int, input().split()) ans = 0 pre = -10 ** 9 - k for x in map(int, input().split()): if x - pre >= k: ans += 1 pre = x print(ans)