modified script to give how many commits for repository