When in the shop, after pressing buy it should go to a “how many would you like” screen. Have this default to 1, and have a text box which you can type the number you want in, and a button that sets that value to the maximum amount the player can buy, along with showing the cost of this purchase...