Brett decides to order some new books using a $50 gift card he received for his birthday. He decides to buy as many of a new series of books he can without exceeding the amount on his gift card. If each book cost $12.99 and shipping charges are $7.99 for any size order, what is the maximum number of books that Brett can purchase?