MacDonald had a farm with a certain number of orange trees. He had to cut down 5 trees to control the insects. Each of the remaining trees produced 210 oranges producing a total harvest of 41,790 oranges. How many trees did MacDonald's farm have initially?