More information about your installation would have been amazing.
Anyway, you want to completely re-create your database, as otherwise, you can’t reset those type of counters. Zammad does work with tables within a database.
A ticket with the number 44 must be entered for our migration. The counter is already at number 62. The ticket with number 44 has been deleted. Now, can I add a ticket with the number 44 again? Maybe about curl?