You've given us virtually nothing to work with, so all we can do is give you a generic answer.
Based on the vague description, it sounds like you want a CSS counter:
Using CSS counters - CSS: Cascading Style Sheets | MDN
If that's not
what you want, then you're going to have to provide a lot more detail than you have provided so far.