>>591
obj = bpy.context.object
obj.modifiers.new('Array', 'ARRAY')
mod = obj.modifiers[-1]
mod.count =10