How to measure generosity