Implemented method to get total number of commits from repo