Count the number of positions where corresponding symbols differ in equal-length strings.
Named after Richard Hamming, this metric counts the minimum number of substitutions required to change one string into another.