Imagine a multimap tracking persons, each of whom has a list of assigned tasks. How can I use streams to get a new map, mapping each Person to an Integer with the count of items found in their list of assigned tasks? How to get a result equivalent to this hard-coded map: I have been trying permutations of: Answer You