Increment counter every time component is used?

Currently I use context to to have signals for this counters but is is possible to get this without context or imported signal?

<Thing/>
<Thing/>
<Thing/>

First one would have 1 and last one 3 and so on
Was this page helpful?