conteo final - sin distance transform