write total trials to stdout