Here, initially numBranches = 1, when there is any branch(says n), it will update numBranches to numBranches + n - 1