def _aggregate(self, aggregation=None):
        if aggregation is None:
            aggregation = fn.Count(SQL('*'))
        query = self.order_by()
        query._select = [aggregation]
        return query
dataset/ETHPy150Open coleifer/peewee/peewee.py/SelectQuery._aggregate/original