The good news here is that if the automated tally system was operating correctly, the number of ballots that have to be sampled and compared generally needs only be surprisingly small to achieve a very high degree of confidence (a low risk limit).
The even better news is that RLAs achieve everything traditional recounts do, but with the added feature that they also protect against catastrophic software errors or malware in the tabulators. They render recounts an obsolete approach.
7/