Provides volatile counter cache logic to ActiveRecord::Base.