How many {part of} are for {history of Kentucky} ?
How many parts does the history of Kentucky contain?
How many parts are with the history of Kentucky} ?
SELECT ( COUNT ( ?f ) AS ?d ) { resource:history_of_Kentucky property:part_of ?f }
SELECT (COUNT(?obj) AS ?objs ) {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q5865123> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P361> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
} 

SELECT (COUNT(?obj) AS ?value ) { wd:Q5865123 wdt:P361 ?obj }
4