Yep, I\'m a SQL jockey (sorta) coming into the CouchDb Map/Reduce world. I thought I had figured out how the equivalent of the COUNT(*) SQL aggregator function for CouchDB d
In your reduce just put:
_count
You can also get a sum using:
_sum
so basically reduce: "_sum" or reduce: "_count" and make sure the value your map emits is a valid integer (numeric value)
See "Built in reduce functions".