Count number of branches to labeled blocks.