code: def bit_count(self, start=None, end=None):
          
          return self.database.bitcount(self.key, start, end)
docs: Count the set bits in a string. Note that the `start` and `end`
          parameters are offsets in **bytes**.