N, K = map(int, input().split()) X = list(map(int, input().split())) pre = -10**11 ans = 0 for x in X: if x - pre >= K: ans += 1 pre = x print(ans)