code: def nchunks_initialized(self):
          
  
          # key pattern for chunk keys
          prog = re.compile(r'\.'.join([r'\d+'] * min(1, self.ndim)))
  
          # count chunk keys
          return sum(1 for k in listdir(self.chunk_store, self._path) if prog.match(k))
docs: The number of chunks that have been initialized with some data.