Diane bought some books for $5 each and received a discount of $7 off of her total purchase. She spent $58 after the discount. How many books did she buy?