added an output (n) in evaluate_error. added index for parameter counting in parameterization database.