Added option to automatically detect the number of clients to create

Signed-off-by: Hans Christian Woithe <hcwoithe@cs.rutgers.edu>