query: SELECT ?item (COUNT(DISTINCT ?painting) AS ?count) WHERE {
    ?painting wdt:P31 wd:Q3305213 .
    ?painting wdt:P195 ?collection .
     ?painting p:P528 ?catalogstatement .
    ?catalogstatement ps:P528 ?catalogid . 
    ?catalogstatement pq:P972 ?item .
    ?item wdt:P31  wd:Q5146094 . 
    SERVICE wikibase:label {
      bd:serviceParam wikibase:language "en" .
      ?item rdfs:label ?name .
     } 
    } GROUP BY ?item ?name 
  ORDER BY DESC(?count)