A local bookstore is offering a sale where customers can receive a discount based on the number of books they purchase. For each book you buy, you get a $1 discount off the total price. If each book costs $10 and you decide to buy 4 books, what will be your total cost after applying the discount?