Improve performance of sale count function. #977
Merge branch 'master' of github.com:easydigitaldownloads/Easy-Digital-Downloads