There is an issue with the code above.
It created sequential numbers by counting posts in specific post type. But when I remove an entry of this post type, the numbering is starting to make similar numbers which is mess up the thing.
Can you please suggest me a way or idea to prevent this confliction?
Thank you!