tidied up UL category counter