How many {social classification} are to/by {peasant} ?
Which is the number of social classifications that there are for the peasant?
How many social classifications are there for the {peasant} ?
SELECT ( COUNT ( ?y ) AS ?j ) { ?y property:social_classification resource:peasant }
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/P3716> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q838811 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P3716 wd:Q838811 }
57