def indent(string: str) -> int:
    """Count the indentation in whitespace characters.

    Args:
        string (str): text with indents

    Returns:
        int: Number of whitespace indentations

    """
    return sum(4 if char == "\t" else 1 for char in string[: -len(string.lstrip())])