For one thing, it’s not a plugin, it’s a module.
I added a bit to it; on line 85, in the loop that actually generates the documents, I changed the 30 to a variable, $howMany, then on the first line I added
$howMany = isset($howMany) ? $howMany : 10;
Now in the module’s Configuration, I put