bolivia has had more than 100 coups or revolutions since it gained its independence from spain in 1825 and sunday 's inaguration will be the first time in 25 years that a government has completed its term and transferred power to a democratically elected president .