Count the number of target sources in branches
Minor changes to the UI