How many {connecting line} are to/by {Acela Express} ?
The Acela Express has now many lines connecting to it?
How many lines are connecting the Acela Express} ?
SELECT ( COUNT ( ?k ) AS ?u ) { ?k property:connecting_line resource:Acela }
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/P81> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q481759 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P81 wd:Q481759 }
0