SoloLearn interview question

How could you re-invent a counted set?