Voeg een kolom toe, total , bijvoorbeeld:
select t.*
, (select count(*) from tbl where col = t.col) as total
from tbl t
where t.col = 'anything'
limit 5
Zoals aangegeven door @Tim Biegeleisen :limit trefwoord wordt na al het andere toegepast, dus de count(*) geeft nog steeds het juiste antwoord.