Limit mergeTask count

I wanna know how to limit mergeTask count(may be 3 or 4), I set “druid.worker.capacity=15”, I don’t want to mergeTasks influence real-time tasks.
By the way,It’s better that we can config any other tasks’ max count, like merge,roll-up,etc.