Auto increment number when a task is cloned

Auto increment number when a task is cloned

Hello,

I have the following question: is there any posibility to autoincrement a number on a field when a task is cloned, but when a task is created the same number to be 0?

For exemple, let's say I have Task#1 with the field No = 0. When I create a clone for this task No should be 1, 2, 3 and so on, but if I create another Task (let's say Task#2), No should be 0 again and increment No for every clone of Task#2