Count the pathways per pathway category

Statement: 

Display all pathways ordered by a category
A limit per page $number$ (e.g.10)

Query: 
prefix wp: <http://vocabularies.wikipathways.org/wp#> prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix dcterms: <http://purl.org/dc/terms/> SELECT DISTINCT ?category (count(?category) as ?noCategories) WHERE { ?pathway wp:category ?category . ?pathway dc:title ?title . } GROUP BY ?category ORDER BY ?category
Tags: