Hello,
You wrote "Is there a way to define how many chars will be generated in the image and to let only numbers appear?".
Unfortunately, there is no way to do so.
What can be changed is what is listed in the secureimage_show.php file, which is text transparency, number of lines over the text, color and whether the existing words will be used or no.
Regards,
Mihaela