def _reduce_count(self):
        """Reduce size of cache by count.

        """
        if self.max_count:
            while len(self.data) > self.max_count:
                self.data.popitem(last=False)
dataset/ETHPy150Open jmcarp/robobrowser/robobrowser/cache.py/RoboCache._reduce_count/original