def get_count(self, prefix=''):
        return sum([self.counters[key]
                    for key in self.messages if key.startswith(prefix)])
translate port name before storing it
dataset/ETHPy150Open kivy/plyer/plyer/tools/pep8checker/pep8.py/BaseReport.get_count--crossover with--dataset/ETHPy150Open pyserial/pyserial/serial/urlhandler/protocol_hwgrep.py/Serial.port