edd_get_download_sales_stats()

This function will retrieve the total number of sales for a particular download.

$sales = edd_get_download_sales_stats( $download_id );