add category count to ui.