commit-graph: use commit_list_count()