I found this answer already: Number of commits on branch in git but that assumes that the branch was created from master.
How can I count the number of commits along
If you are using a UNIX system, you could do
git log|grep "Author"|wc -l