I am doing an essay on the knowledge of Mathematics and how we know what we know to be true. I was just wondering if there was an example in mathematics of some theorem that was disproven by a counterexample, but then the counterexample was wrong and the theorem stayed true after all? 

Thanks for your time. :)