limit the number of generated instances