n,k=map(int, input().split())
a=int(input())
l=[a]
x=[]
for i in range(n-1):
    tmp=int(input())
    l.append(tmp)
    x.append(tmp-a)
    a=tmp

total=0
ans=0
for i in x:
    total+=i
    if total<=k:
        total=0
        ans+=1
if n==1:
    print(1)
else:
    print(ans)