Listview: Make it possible to apply count theme with a class

Fixes gh-6966

Replaces PR https://github.com/jquery/jquery-mobile/pull/7452