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!