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