Completed segmentor that terminates when enough number of segments is reached.