So I have two list of dictionaries which look like the following:

```
A = [{'id':'xyz', 'count': 3},{'id':'zzz', 'count': 1}]
B = [{'id':'xyz', 'count': 4}]

```

I want the final output to be like:

```
C = [{'id':'xyz', 'count': 7},{'id':'zzz', 'count': 1}]

```

So in case that if the value of the first key is the same in both lists, we add up the values for the second key. Any idea how I might achieve this? So far I have tried:

```
for elem in A:
    if elem['id'] in B.elementsKey['id']:
        # TO DO

```

I am stock where I am trying to update the value for the other element accordingly.

NOTE: Each id is unique.

Thanks