def count(self, namespace=None, **kwargs):
        namespace = namespace or "None"
        if namespace not in self._stat_counters:
            self._stat_counters[namespace] = {}
        stats = self._stat_counters[namespace]
        for key,value in kwargs.iteritems():
            if key not in stats:
                stats[key] = value
            else:
                stats[key] += value
dataset/ETHPy150Open ooici/pyon/pyon/util/stats.py/StatsCounter.count/original