Added total branch number to output