A coffee shop sells bags of coffee for a regular price of $5 per bag. Ravi bought some bags and used a coupon for $20 off his entire purchase. After applying the coupon, he paid $15. How many bags of coffee did he buy?