How many {stock exchange} are to/by {New York Stock Exchange} ?
What is the number of stock exchanges that are like the New York Stock Exchange?
How many stock exchanges are there like the New York Stock Exchange?
SELECT ( COUNT ( ?y ) AS ?q ) { ?y property:stock_exchange resource:New_York_Stock_Exchange }
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/P414> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q13677 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P414 wd:Q13677 }
1823