How to give a unique ID number incrementing by one?

How to give a unique ID number incrementing by one?

Hi,

I have a form for my users and I want to have a hidden field where the form will automatically assign a unique ID number to each user that fills the form. The ID number shall start with 1 and increment by 1 in each form submit. How can I do it?

Many thanks,
Vera