How many {statistical leader} are to/by {Lionel Messi} ?
Lionel Messi holds how many records?
How many records are held by Lionel Messi?
SELECT ( COUNT ( ?z ) AS ?e ) { ?z property:statistical_leader resource:Lionel_Messi }
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/P3279> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q615 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P3279 wd:Q615 }
7