How can I add numbering to each data submitted?

So I created a data and a form for any people to fill in. How can it automatically generate a number code to each submission? Like the ID in the database, but a simple one like 1,2,3,4,5,6,…100?