Use a module function to count the hamming distance