fixing accidental deletion

accidentally deleted numberOfTests variable in original main code.  This
should be used in conjunction with dynamically declared averaging
arrays.