unify counting categorization