ChkDsk is a utility that will tell you the number of bad sectors on a drive. It can also record the total number of bad sectors that it found.