How many {religion} are to/by {animism} ?
What is the number of religions by animism?
How many religions are by animism?
SELECT ( COUNT ( ?c ) AS ?x ) { ?c property:religion resource:animism }
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/P140> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q43004 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P140 wd:Q43004 }
61