The first pirate realized that he miscounted his original treasure. It was not 8475 gold coins, but 9328 gold coins. After still giving the second pirate his share of 4496 coins, how many gold coins did the first pirate actually have in the beginning?