How can I generate a ticket number for each submission?