Allow for mapped documents to specify how many they count for. Use this to fix the count for the chained count unique reduction
One way to fix the chain reduction problem: documents count for 0 when re-reducing a document that already exists (this breaks the Count, though)
Hacky way to fix the events count.