let input = readLine()!.characters.split(" ").map{Int(String($0))!}
let (N, X) = (input[0], input[1])
let L = [0] + readLine()!.characters.split(" ").map{Int(String($0))!}
(0..<N).reduce(1){$0+(L[$1]+L[$1+1]>X ?0:1)}