using promises and exec to get commit counts