Computing function size properly