title: Count number of element in each col and save it in default dic
body: <p>I am trying to count number of occurrence for every item and save it in default dict based on its location in the list
  for example :
  if pass this list: <br /></p>
  <pre><code>                   [[1, 2, 3, 4],&lt;br /&gt;
                     [1, 3, 4, 2], &lt;br /&gt;
                     [1, 2, 4, 3], &lt;br /&gt;
                     [3, 4, 1, 2], &lt;br /&gt;
                     [3, 4, 2, 1]]&lt;br /&gt;
  result : {1: [3, 0, 1, 1], 2: [0, 2, 1, 2], 3: [2, 1, 1, 1], 4: [0, 2, 2, 1]} ****Which is correct**.**
  </code></pre>
  <p>The issue happen when I pass 3 lists or 2. For example:</p>
  <pre><code>                   [1, 2, 4, 3], 
                     [3, 4, 1, 2],
  the result: {1: [1, 0, 0, 1]}) **Which is wrong**
  it should be {1: [1, 0, 1, 0], 2: [0, 1, 0, 1], 3: [1, 0, 0, 1], 4: [0, 1, 1, 0]}
  Since one occurred 1 time in col1 and 1 time in col 3 1: [1, 0, 1, 0] etc
  </code></pre>
  <p>here is my code:</p>
  <pre><code>     j =1
        while j in range(len(votes_grid)):
            for i in range (len(votes_grid[0])):
                c = Counter((x[i] for x in votes_grid))
                if j in c:
                    columnTable[j].append(c[j])
                else:
                    columnTable[j].append(0)
              j+=1
  
  </code></pre>
  <p>I SOLVED IT AS FELLOW.</p>
  <pre><code>j = max(4, len(votes_grid))       
   while d in range(j+1):
              for i in range (len(votes_grid[0])):
                  c = Counter((x[i] for x in votes_grid))
                  if d in c:
                      columnTable[d].append(c[d])
                  elif d in range(len(votes_grid[0])+1):
                      columnTable[d].append(0)
              d+=1
  
  </code></pre>