Input (grade 2): When ten batsmen have been dismissed (i.e., are out), then the whole team is dismissed and the innings is over.
Output (grade 2): The innings is over when ten wickets are taken (i.e. ten of the eleven batsmen are out).