How many {signatory} are to/by {South Korea} ?
South Korea has how many signatories?
how many signatories does south korea have?
SELECT ( COUNT ( ?h ) AS ?v ) { ?h property:signatory resource:South_Korea }
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/P1891> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q884 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P1891 wd:Q884 }
16