Given the following vector:

```
[{:id "1" :performed [{:type "typeA"}, {:type "typeA"}, {:type "typeB"}]}, 
 {:id "2" :performed [{:type "typeB"}, {:type "typeB"}, {:type "typeB"}]}

```

How can I count the occurrences of performed types?

Expected Output:

```
[{:id "1" :typeA 2 :typeB 1}, {:id "2" :typeB "3"}]

```