Aye Aye, Captain!
Five pirates have obtained 10000 gold coins and have to divide up the loot. The pirates are all extremely intelligent, treacherous and selfish (especially the captain).
The captain always proposes a distribution of the loot. All pirates vote on the proposal, and if half the crew or more go "Aye" (which means they agree), the loot is divided as proposed, as no pirate would be willing to take on the captain without superior force on their side.
If the captain fails to obtain the support of at least half his crew (which includes himself), he and the pirates agreeing with him faces a mutiny, and all pirates will turn against him and the ones who support him and make them walk the plank. The pirates start over again with the next senior pirate as captain.
What is the maximum number of coins the captain can keep without risking his life?
Clarification: Assume that if a pirate gets coins than he would vote for the captain's proposal.