Du kan pakke din forespørgsel ind i en anden:
SELECT
cnt AS page_visits
, COUNT(*) AS number_of_visitors
FROM
( SELECT
COUNT(*) AS cnt --- use: COUNT(DISTINCT page_id)
--- for a different count
FROM vislog
GROUP BY visid
) AS grp
GROUP BY cnt
ORDER BY number_of_visitors ;
eller (jeg formoder, at dette giver mere mening for at overføre tallene til et diagram), fjern ORDER BY
hvilket er det samme som at sætte:
ORDER BY cnt ;