($N,$K)=map int,glob<>;
--$K;
@X=map int,glob<>;
@A=map int,glob<>;
for($L=$X[$l=$K];$l>=0&&$L<=$X[$l];--$l){
	$L-=$-=$L-($X[$l]-$A[$l])
}
for($R=$X[$r=$K];$r<$N&&$X[$r]<=$R;++$r){
	$R+=$-=($X[$r]+$A[$r])-$R
}
print$r-$l-1