Added num_equal_to function