<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def download(self, destination_path, params=None):
 """ Downloads a file to the given local path and returns the size of the downloaded file if successful *returns* [Integer] ```python from filestack import Client client = Client('API_KEY', security=sec) filelink = client.upload(filepath='/path/to/file') # if successful, returns size of downloaded file in bytes response = filelink.download('path/to/file') ``` """

        if params:
            CONTENT_DOWNLOAD_SCHEMA.check(params)
        with open(destination_path, 'wb') as new_file:
            response = utils.make_call(CDN_URL, 'get',
                                       handle=self.handle,
                                       params=params,
                                       security=self.security,
                                       transform_url=(self.url if isinstance(self, filestack.models.Transform) else None))

            if response.ok:
                for chunk in response.iter_content(1024):
                    if not chunk:
                        break
                    new_file.write(chunk)

            return response