how to add tags to an entitie in your structere

I want to make a datapack where i would need to add custom tags to my villagers, i want to give them a name (number) , let's only worry about if you have 1 village for now, is it possible to give them a random tag, or counting up. Or should i put them in a scoreboard, that is called 'villagers(village1)' and put a list in that scoreboard, idk or that is even possible, what is all possible with scoreboard? Idk where to start every help is welcome! 🙂

Continue to help post