Fix counting commits.