add CountEach, SumEach and MapToBag UDFs