fixed bug in computing number of depVars. (Control vars need to be subtracted.)