Control the number of times viterbi runs.