> function map()
{ emit('count', 1); }> function reduce(key, values)
{ return Array.sum(values) }> out = db.foo.mapReduce(map, reduce)
Mon Jul 12 13:20:06 uncaught exception: map reduce failed: {
"ok" : 0,
"errmsg" : "final reduce failed:
"
}