How many {cast member} are to/by {Chris Farley} ?
Chris Farley has played how many cast members?
SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P161 wd:Q311752 }
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/P161> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q311752 .
} 

Which is the number of cast members that Chris Farley has played?