How many {commemorates} are to/by {Giuseppe Garibaldi} ?
How many celebrations were held for Giuseppe Garibaldi?
How many commemorates were given to Giuseppe Garibaldi?
SELECT ( COUNT ( ?z ) AS ?i ) { ?z property:commemorates resource:Giuseppe_Garibaldi }
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/P547> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q539 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P547 wd:Q539 }
13