How many {location of discovery} are to/by {Naples} ?
What is the number of things discovered by Naples?
How many things were discovered by Naples?
SELECT ( COUNT ( ?e ) AS ?j ) { ?e property:location_of_discovery resource:Naples }
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/P189> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q2634 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P189 wd:Q2634 }
4