helper.js: fix total commits count