Project(Extend(Graph(?g, BGP( ?s ?p ?o)), ?count, count(?g, , distinct) ), {?count})