HPCC-10349 Allow number of iterations to be specified

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>