how to display auto increment data into custom text field

I have created custom text field for auto increment and now i want to display that value fetch from data base and display into that text field. When ever i create new record it increment that value and display into custom text field

I found this plugin is the best for this