def count(self, table, **kw):
        _check_args('count', kw.keys(), (
            'what', 'join', 'inner_join', 'left_join', 'right_join', 'where',
            'where_or', 'group_by', 'debug_print', 'debug_assert'
        ))
        if kw.get('group_by', None) is None:
            kw.pop('what', None) # if it's there, we can remove it safely, as it won't affect the row count
            row = self.select(table, what='count(*)', rows='one', **kw)
        else:
            row = self.select(table, get_count=True, **kw)
        return int(row['count'])
Return the first configured instance.
dataset/ETHPy150Open cjauvin/little_pger/little_pger.py/LittlePGer.count--crossover with--dataset/ETHPy150Open saltstack/salt/salt/cloud/clouds/profitbricks.py/get_configured_provider