title: Python convert Counter object into list of ordinals
body: <p>I think this should have a relatively simple solution.</p>
  <p>I have a Counter object and, from it, I want to make a list composed of integers that represent the ordinal values of each key in the Counter object.</p>
  <p>Illustration of what I mean:</p>
  <p>Let's say this is my counter object -</p>
  <pre><code>Counter(elems)
  
  Counter({'elem1': 13,
           'elem2': 13})
  </code></pre>
  <p>From this, I want to generate the following type of &quot;ordinal&quot; list:</p>
  <pre><code>[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]
  </code></pre>
  <p>I've tried a few things, such as this:</p>
  <pre><code>ord_list = [i for i in range(1, v + 1) for k, v in Counter(elems).items()]
  </code></pre>
  <p>But the closest I keep getting is <code>[1, 1, 2, 2, 3, 3, 4, 4..., 13, 13]</code> rather than what I'm looking for.</p>
  <p>What blindingly obvious thing am I missing? Thanks everyone.</p>