How often does a diophantine equation have a solution?