def indent_size(s: str) -> int:
    """Get the indentation size of a string."""
    indent = 0

    for c in s:
        if c == ' ':
            indent += 1
        else:
            break

    return indent