How many {mount} are for {Lester Piggott} ?
Which is the number of mountains that there are for Lester Piggott?
How many mountains are there for the {Lester Piggott} ?
SELECT ( COUNT ( ?s ) AS ?b ) { resource:Lester_Piggott property:mount ?s }
SELECT (COUNT(?obj) AS ?objs ) {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q377345> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P3091> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
} 

SELECT (COUNT(?obj) AS ?value ) { wd:Q377345 wdt:P3091 ?obj }
4