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