Added a sleep to allow time for created threads to properly increment thread counter.  This prevents the program for exiting prematurely