How many {lyrics by} are to/by {Viktor Tsoi} ?
Which is the number of song lyrics that were written by Viktor Tsoi?
How many song lyrics were written by Viktor Tsoi?
SELECT ( COUNT ( ?b ) AS ?m ) { ?b property:lyrics_by resource:Viktor_Tsoi }
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/P676> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q487125 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P676 wd:Q487125 }
9