def input_size(data: "int | str | bytes | list | tuple"):
    """ Returns the input size of the given data in bits.

    Args:
        data (str | bytes | list | tuple): A data object which may be a
        string, bytes, or a list/tuple of binary elements.

    Returns:
        int: Length of the data object, in bits
    """
    if isinstance(data, int): return len(hex(data)[2:]) << 2
    if isinstance(data, (str, bytes)): return len(data) << 3
    else: return len(data)