def batch_size(self) -> int:
        """Returns the number of programs in a batch program.

        Raises:
            ValueError: if the program created was not a batch program.
        """
Returns the number of programs in a batch program.

        Raises:
            ValueError: if the program created was not a batch program.
        
cirq-google/cirq_google/engine/abstract_program.py