Josh has a rope that is 43 feet long. He cuts off a piece that is 10 feet long and gives it to his brother. He wants to cut the rest of the rope into pieces measuring exactly 5 feet each. How many pieces can he cut?