Abdul ordered some books online and spent a total of $133. Each book cost $8 and he paid a total of $5 for shipping. How many books did he buy?