Under what condition do animal droppings (like sheep or cow dung) contaminate a small well?

Well Purification: Required Bucket Counts and Unknown Time of Death