se vuoi contare quanti ne hai usa

select count(*) where campo like '%ap%

poi leggi rs(0)