Update search_package/Package.search and add count_collection/Package.count_collection

- Fix the search Package method to be able to restrict to a certain collection
- Add the count_collection method returning the number of packages present in each active
collection
Changes the stats endpoint to use the new count_collection methods which actually works