This is generally done by creating a product with a price of $1 and allowing "customers" to "buy" as many as they wish. By suppressing the price and putting a $ sign in front of the quantity box, this can quite natural.