What individual has won the most Olympic gold medals in the history of the games?

Michael Phelps has won the most gold medals of all time with 23 golds.