SELECT (COUNT(*) AS ?c) ?o WHERE { ?s ?p ?o }