Ak som to pochopil, tak by toto mohlo fungovat:
Kód:
SELECT page, COUNT(1) FROM stats GROUP BY page