Fernando, a trader, wants to buy 1000 shares of XYZ stock, while a second trader, Ally, is willing to sell 1500 shares of the same stock. What is the total number of shares that need to be traded?