Here are two other (pure Windows CMD) ways to count lines in a git log:
set n=0
for /f %a in ('git log --oneline') do set /a n=n+1
Or:
git log --online | find /v /c ""
The advantage of the first one is that you end up with the value in an environment variable you can do stuff with. But it might perform slow with huge files.