def chunkCount(self):
        """Returns the number of chunks in the level. May initiate a costly chunk scan."""
        if len(self._loadedChunks) != 0:
            return len(self._loadedChunks)
        else:
            return len(self.allChunks)
Returns the number of chunks in the level. May initiate a costly chunk scan.
pymclevel/leveldbpocket.py