Simplified lua output for array count and array append