Git:Rev-list
Example
To count the commits for the branch you are on:
for a branch:
If you want to count the commits on a branch that are made since you created the branch:
To count the commits for the branch you are on:
for a branch:
If you want to count the commits on a branch that are made since you created the branch: