use counter_cache only with ActiveRecord