Measure the chain. 24 links on a new chain are 12" long center to center on the pins. when it measures 12 and 1/16" wear or streach the chain should be replaced. The cogset should last through two or three chains.
Chain life is a function of care and use.
http://draco.nac.uci.edu/rbfaq/FAQ/8d.2.html