How many {headquarters location} are for {NBC} ?
NBC has now many heaquater locations?
How many NBC headquarters locations are there?
SELECT ( COUNT ( ?o ) AS ?u ) { resource:NBC property:headquarters_location ?o }
SELECT (COUNT(?obj) AS ?objs ) {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q13974> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P159> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
} 

SELECT (COUNT(?obj) AS ?value ) { wd:Q13974 wdt:P159 ?obj }
4