N, K = map(int, input().split()) S = input() b = 1 i = 0 c = 0 while i < K - 1: c += int(S[i % N]) i += 1 if c == 0: b += 1 else: c -= 1 print(b)