Put the number of generations to run into the call to the run() method.