Usa COUNT funzione e GROUP BY per trovare il numero di visite per ogni tag .
E usa ORDER BY clausola per ordinare il risultato in ordine decrescente del numero di visite.
Interroga
SELECT tag, COUNT(DISTINCT station) AS `no of visits`
FROM taps
GROUP BY tag
ORDER BY COUNT(DISTINCT station) DESC;