To allow different styles of reporting errors, a
Controller uses an ErrorReporter to report any
errors that are thrown during its checkInput/compute
cycle.
Return the number of commands in prog that are part of this function reference,
including the space occupied by the commands that compute the values of the
function's arguments.