Class which counts differences between two strings