working on count_coincidences