# File lib/bullet/active_record5.rb, line 226
        def count_records
          result = reflection.has_cached_counter?
          if Bullet.start? && !result && !is_a?(::ActiveRecord::Associations::ThroughAssociation)
            Bullet::Detector::CounterCache.add_counter_cache(owner, reflection.name)
          end
          super
        end