Line in bash script to wait for x feedbacks and then continue

I have a script that runs a console/terminal command on the server and what is want is for each of the multiple success reports fed back from the clients (echo-ed out onto the conosle) to be counted and after x number of reports reboot the server.

The Details:
The command (program) is clonezilla and in one line of the script it kicks off a job to roll out an image to a bunch of PCs. As the PCs are finished being imaged they report back to the clonezilla server (Ubuntu) by echo-ing a line on the script console/terminal to report the success and the time it took to image each partition on the drive.
I had a counter in the script that just counted down 20 minutes and then stoped the DHCP server. It also prevented the script terminal from closing and the reports from being visible. It was nice to see the reports but more important to stop the DHCP server. I really want the script to wait for the clients to report back and then reboot the server.
The DHCP server that temporarily runs on the Ubuntu clonezilla server (for PXE boot) interferes with the production DHCP server, which has reserved IP addresses based on the client MAC addresses (it is also the gateway for the clients). So I want the image server to reboot (dual boot, so boots back to XP (default)) so that the DHCP servers do not conflict and the clone server is 'hidden'.
If anyone knows how I can block the server from seeing the default gateway/firewall on layer two then that would be a bonus. Right now I have to physically unplug the network cable to prevent the multicast image job from running super slow and stay at the 3 to 4GB per minute as it does. IP tables didn't work.

Here is the whole script including the last line, which I think may work and do what I want but I am hoping to get a confirmation and the best way to do this. I am looking to learn more bash scripting too.
I thought about about a while loop.

#!/bin/bash
echo
echo "How many clients would you like to image?"
echo
read X
echo
echo "You have chosen to image $X clients. Before you restart those $X clients"
echo "please enter the Administrator password..."
echo
# read -p "Press ENTER key to continue"
# password is requested when dhcp3 server starts
sudo /etc/init.d/dhcp3-server start
# next line is to kick of the mulitcast clone job in one line. Clonezilla rocks.
sudo /opt/drbl/sbin/drbl-ocs -b -g auto -e1 auto -e2 -r -x -j2 -p reboot --clients-to-wait $X --max-time-to-wait 300 -l en_US.UTF-8 startdisk multicast_restore XP-UBUNTU-IMAGE sda
clear
echo "Please reboot the client PCs now."
echo "The job will start 5 minutes after the first client PXE boots"
echo "or when all $X clients are PXE booted.
echo"
read -p "Waiting for the $X images to finish then going to reboot."
[ "$REPLY" == "succeeded" ] || sudo shutdown -r

Here is an example of the line echo-ed back when I client is finished cloning.

Client 192.168.0.11 (00:1e:c9:30:c3:f1) finished cloning. Stats: Multicast restored XP-Ubuntu-IMAGE, /dev/sda1, success, 40164 MB, 81.109 mins, 492.0 MB/min; /dev/sda2, success, 36964 MB, 22.640 mins, 1632.0 MB/min;