Add debug logging for finding number of LBs