Here, the first lambda expression is the mapper (mapping each element to its size), and the second lambda expression is the reducer, which takes two sizes and adds them.
In reality, we would probably express this more compactly using a method reference to the size method for our mapper and a predefined reducer for integer summation.