def how_many_bytes(bits: int) -> int:
    """
    how_many_bytes calculates how many bytes are needed to to hold the given number of bits

    E.g.
    => how_many_bytes(bits=0) == 0
    => how_many_bytes(bits=8) == 1
    => how_many_bytes(bits=9) == 2

    Args:
        bits (int): The number of bits

    Returns:
        int: The number of bytes
    """
    return (bits + 7) // 8