SELECT ( COUNT( ?s ) AS ?cnt ) WHERE { ?s ?p ?o . }