Working towards a generic category count