It is gonna cost at least a couple grand.
A brand new, quality crate engine will cost you at least $3000 and up to $5000. This doesn't include labor, additional parts and shipping.
If you get a used engine from a junk yard, it'll cost less. However, it still won't be cheap. If you buy a used engine, it may not be in tip top shape.