def _count_rows(self):
        """
        Count the number of rows currently stored in Solr for this Dataset.
        Useful for sanity checks.
        """
        return solr.query(settings.SOLR_DATA_CORE, 'dataset_slug:%s' % self.slug)['response']['numFound']
dataset/ETHPy150Open pandaproject/panda/panda/models/dataset.py/Dataset._count_rows/original