Transforming frequency or count of variables into repeat vales of those variable within a column

Frankly, I am not sure how to phrase this question. Therefore, I will try to explain using the final output that I am interested in. My data looks something like below:

enter image description here

Now, I would like to transform this table into a long format like below. Basically, the frequencies of each column have been converted into long form.

enter image description here

I have been scratching my head but, not able to find any such examples as well to follow. May be I am not able to search for the correct question.

Please suggest.