How many {has facility} are to/by {bed} ?
How many beds are in the facility?
SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P912 wd:Q42177 }
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/P912> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q42177 .
} 

Which is the number of the beds in the facility?