Allow number of loops to be set on command line.