How many {input method} are to/by {gamepad} ?
A gamepad has how many input methods?
How many input methods are there for a gamepad?
SELECT ( COUNT ( ?r ) AS ?j ) { ?r property:input_method resource:gamepad }
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/P479> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q273140 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P479 wd:Q273140 }
2155