For a qualifying small animal, 20 buckets is the established minimum in the cited reasoning, while taking out as many as 30 is discussed as a recommended precaution because both figures appear in the transmitted report.
A narration attributed through Anas mentions “20 or 30 buckets” for a mouse in a well. No independent judgment of the report’s chain is made here.