Joshua has 40 bottle caps. He buys 7 more. How many bottle caps does Joshua have in all?