title: In CouchDB, how can I emit a key value in a reduce function?
body: <p>Currently, my code looks like </p>
  
  <pre><code>function(keys, values, rereduce){
      return {"key":keys[0][0],"count":values.length};
  }
  </code></pre>
  
  <p>Upon running this, the resulting row is:</p>
  
  <pre><code>key = None, value={u'count':3,u'key':u'123456'}
  </code></pre>
  
  <p>This works for my purposes, as I just parse the JSON string in the value attribute, but it seems like the wrong way to be doing things.</p>
  
  <p>So how can I have the reduce function emit a key value, rather than None?</p>