n,k=map(int,input().split()) L=list(map(int,input().split())) q=[] for e in L: if q==[]: q.append(e) else: if k<=e-q[-1]: q.append(e) print(len(q))