def counts(self):
    tosc = (lambda e: (e / self._scale))
    im = zeros(list(map(tosc, self._shape)))
    imr = im.ravel()
    for (px, s) in self._map.items():
        imr[px] = len(s)
    return im
def counts(self):
    tosc = (lambda e: (e / self._scale))
    im = zeros(list(map(tosc, self._shape)))
    imr = im.ravel()
    for (px, s) in self._map.items():
        imr[px] = len(s)
    return im