From the code posted, I assume you are trying to get the count of records having ExpireDate less than or equal to current date plus number of alertdays. If that is the case, modify the query to something like below and it should work.
select count(*) from tblitem where dateadd(day, AlertDays,getdate()) <= ExpireDate