Returns the sum of all values produced by selector function applied to each element in the collection.