How many {anatomical location} are to/by {heart} ?
Which is the number of auto locations that there are in the heart?
How many auto locations are there in the {heart} ?
SELECT ( COUNT ( ?l ) AS ?p ) { ?l property:anatomical_location resource:heart }
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/P927> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q1072 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P927 wd:Q1072 }
22