How to add a doctype with is auto incrementing

I want to add a doctype which is auto incrementing in nature how is it possible?

yes, it is possible.