You can buy this project and download/modify it how often you want.
template { ?p ' : ' count(*) } where { ?x ?p ?y } group by ?p order by desc(count(*))