SELECT ( ( COUNT( ?o ) + "1"^^ ) AS ?x ) WHERE { ?s ?p ?o . }