cmd/gotree: Print footer with summary