use mapreduce for find total commit count

* past logic occur error over BSONSize
* reduce cpu intensive to make unique array