Update hamming to use .count method