Fix .commit_count when no commits