How many {religion} are for {Al-Juwayni} ?
Al-Juwayni consists of what number of religions?
How many religions are consists with the Al-Juwayni} ?
SELECT ( COUNT ( ?b ) AS ?f ) { resource:Al-Juwayni property:religion ?b }
SELECT (COUNT(?obj) AS ?objs ) {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q2584074> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P140> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
} 

SELECT (COUNT(?obj) AS ?value ) { wd:Q2584074 wdt:P140 ?obj }
4