An online retailer offers a bulk discount of $120 on large orders. A customer purchased several identical electronic gadgets, each priced at $15. After applying the $120 discount, the customer paid a total of $330. How many electronic gadgets did the customer purchase?