How many {given name} are to/by {Joseph} ?
What number are given the name Joseph?
How many are given the name Joseph?
SELECT ( COUNT ( ?n ) AS ?i ) { ?n property:given_name resource:Joseph }
SELECT (COUNT(?sub) AS ?subs ) {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?sub .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P735> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q145746 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P735 wd:Q145746 }
5