It counts successful downloads only.
To be absolutely accurate. It will record a download if the download successfully started to the users device. If the user cancels the download half way through (if your distributing a huge file for example, and they change their mind half way through the download), it will still recored that download as the download was successfully initiated. At that point the user could and most probably will have left the page.