'Constructor.
Args:
initial_map: initial counter values map from counter name (string) to
counter value (int).'

def __init__(self, initial_map=None):

    if initial_map:
        self.counters = initial_map
    else:
        self.counters = {}
