change how number of commits is calculated: new it counts only commits reachable from HEAD, but not all commits in repository. it should align build numbering for given commit and remove differences in numbering.