What is the best way to Auto increment a field in Frappe

In an App that I am creating. I have three fields in a DocType.

I want to auto increment them when they are saved.

What is the best way to auto increment them in such a way that they are no duplicate values generated when multiple users are using the app.