def beginning_zeros(number: str) -> int: # your code here counter=0 for val in number: if(val == '0'): counter+=1 else: return counter return counter