Three pirates an their monkey split a chest of gold coins.
First, the captain makes three equal piles, giving a single leftover coin to the monkey. He takes one of the piles for himself and pours the other two piles back in the treasure chest. The second-in-command does the exact same, followed by the swabbie also doing the exact same. Finally, the last of the gold in the chest is split equally between the three pirates.
How few coins could have been in the chest?