find total commit in git by specific user

C++
git rev-list --all --count
git shortlog -s -n --all --no-merges

Source

Also in C++: