add map count commit number function