Both total_package_count and total_errata_count use elasticsearch.  There was an effort during the pulp v2 migration to move search related stuff to the Glue::Elasticsearch.  Should these go there?

If we move these, we should also move the total_package_count/total_errata_count from product.rb, which these appear to have been derived from.