I have a list like what you see below and want to count how many times the first element of the list is appeared in relation to the first element of the tuple. 

```
[['a', (2, 0.4632342), 0, 0],
 ['b', (2, 0.38278952), 0, 0],
 ['a', (0, 0.51164687), 0, 2],
 ['a', (2, 0.49053752), 0, 0],
 ['b', (6, 0.22554141), 0, 1],
 ['b', (11, 0.33718306), 0, 0],
 ['a', (0, 0.51265407), 0, 0],
 ['b', (0, 0.38063252), 0, 0],
 ['a', (2, 0.3401981), 0, 0],
 ['a', (6, 0.39846212), 0, 0]]

```

In the list above the results should look like this:

```
{'2':{'a':'3','b':'1'}, '0':{'a':'2' , 'b':'1'}, '6':{'a':'1', 'b':'1'}, '11':{'a':0 , 'b':'1'}}

```

or this:

```
{'2':{(a,3),(b,1)}, '0':{(a,2), (b,1)}, '6':{(a,1), (b,1)}, '11':{(a,0) , (b,1)}}

```