ensure that sample method returns the # of samples requested