print out tree number during forest learning