Example for Map reduce in MongoDB