<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _leading_space_count(line):
 """Return number of leading spaces in line."""

    i = 0
    while i < len(line) and line[i] == ' ':
        i += 1
    return i