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
How about git log --pretty=oneline | wc -l
git log --pretty=oneline | wc -l
That should count all the commits from the perspective of your current branch.