Improved :commit_count method