def __init__(self, database, name):
        """
        :param database: A walrus ``Database`` instance.
        :param str name: The name for the counter.
        """
        self.database = database
        self.name = name
        self.key = 'counter:%s' % self.name
        if self.key not in self.database:
            self.database[self.key] = 0
dataset/ETHPy150Open coleifer/walrus/walrus/counter.py/Counter.__init__/original