Sounds like your bearings need to be adjusted, both your hub bearings and your headset. Go to
Park Tools and learn how to do each one for the type you have.
The easy way to decide how many links you will need in your chain is to wrap the chain around the front big chainrind and the big rear cog then add two links. Don't wrap the chain in the derailer when doing this measurement.