add replicate count option