Remove `WithError:` from commit counting method