Update base.py

Correct num_branches_with_new_commits calculation