Ajouter une colonne, total , par exemple :
select t.*
, (select count(*) from tbl where col = t.col) as total
from tbl t
where t.col = 'anything'
limit 5
Comme indiqué par @Tim Biegeleisen :limit le mot-clé est appliqué après tout le reste, donc le count(*) renvoie toujours la bonne réponse.