use AR counter cache for to cache the count of classifications

Use AR counter_caches for classification relations. I Also added a summation method to user_groups to leverage user's classification counter_caches as user_groups do not submit classifications.