How many {designed by} are for {Doom} ?
What is the total number of things designed for Doom?
How many things are designed for Doom?
SELECT ( COUNT ( ?w ) AS ?u ) { resource:Doom property:designed_by ?w }
SELECT (COUNT(?obj) AS ?objs ) {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q189784> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P287> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
} 

SELECT (COUNT(?obj) AS ?value ) { wd:Q189784 wdt:P287 ?obj }
5