def count(self):
        col = sql.func.count(sql.literal_column('*'))
        return self.from_self(col).scalar()
Return a count of rows this Query would return.
dataset/ETHPy150Open goFrendiAsgard/kokoropy/kokoropy/packages/sqlalchemy/orm/query.py/Query.count