How many {lakes on river} are for {Ottawa River} ?
In regards to the Ottowa river, how many lakes run into it?
how many lakes run to the ottawa river?
SELECT ( COUNT ( ?b ) AS ?s ) { resource:Ottawa_River property:lakes_on_river ?b }
SELECT (COUNT(?obj) AS ?objs ) {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q60974> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P469> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
} 

SELECT (COUNT(?obj) AS ?value ) { wd:Q60974 wdt:P469 ?obj }
7