Hi Pavan,
Please see about the NUMBER_GET_NEXT and NUMBER_RANGE_OBJECT_UPDATE function modules. I believe they may be able to help you.
Here's an article about it:
You can also get the next number when you create the object. Therefore you can just monitor it by getting the next number everytime you create a new document type.
Hope this helps!
Best Regards,
Ryann