add a map reduce view for stats.