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