start apple tree program for counting