Tilføj en kolonne, total , for eksempel:
select t.*
, (select count(*) from tbl where col = t.col) as total
from tbl t
where t.col = 'anything'
limit 5
Som angivet af @Tim Biegeleisen :limit søgeordet anvendes efter alt andet, så count(*) returnerer stadig det rigtige svar.