A farmer has 9 apple trees in his orchard already. Later, he decides to plant a number of new apple trees. After the planting, the total number of apple trees he has is 18. How many new apple trees did he plant?