First off, be sure it's a freewheel and not a cassette. Cassette systems have the freewheel mechanism built into the hub ("freehub").
If it is a freewheel, you'll need to buy the entire freewheel unit; this includes the cogs and the freewheel mechanism, which holds the cogs together.