Make the number of entries to generate a parameter

It is not yet saved in the config file. Also needs testing to see what
happens if the user manually enters a bad value