How do I put a select statement into a variable? Do I declare it and with what?

SELECT COUNT (*)as 'Your a Lammo' from dbo.vw_Lammo
Where vendor_err='x' and created_dt>@FromDate

How would I put this into a variable? or the count of this into a variable in SQL?