def count_rule_conditions(rule_string: str) -> int:
    """
    Counts the number of conditions in a rule string.

    Parameters
    ----------
    rule_string : str
        The standard Iguanas string representation of the rule.

    Returns
    -------
    int
        Number of conditions in the rule.
    """
    n_conditions = rule_string.count("X['")
    return n_conditions