fix patch count calculation

We originally calculated RawRef..HEAD what is wrong
since the RawRef IS the HEAD. We need to calculate
number of patches since the last known tag!
Merge pull request #19 from ztmr/master

fix patch count calculation