sqlalchemy core select count