How many {title} are for {British Medical Journal} ?
What is the number of titles that the British Medical Journal has published?
How many titles are published by the British Medical Journal?
SELECT ( COUNT ( ?v ) AS ?i ) { resource:The_BMJ property:title ?v }
SELECT (COUNT(?obj) AS ?objs ) {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q546003> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1476> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
} 

SELECT (COUNT(?obj) AS ?value ) { wd:Q546003 wdt:P1476 ?obj }
4