def get_line_indent_num(line_str):
    """
    Get the number of indents of the target line.

    Parameters
    ----------
    line_str : str
        String of target line.

    Returns
    -------
    line_indent_num : int
        Number of indents.
    """
    space_num = 0
    for line_char in line_str:
        if line_char != ' ':
            break
        space_num += 1
    line_indent_num = space_num // 4
    return line_indent_num
