As a native English speaker it makes sense to me, it is used as a verb (where your usage seems to be as a noun):
verb
ˈd(y)o͞opləˌkāt/
1.
make or be an exact copy of.
"a unique scent, impossible to duplicate or forget"
synonyms: copy, photocopy, xerox, reproduce, replicate, reprint, run off;
And since it takes an integer number to be the number of times to duplicate it it makes sense to me, although perhaps that number should default to 2 would make sense.


















