Automate count of valid datasets.

Stop after 10 consecutive fails. Also print some info on why something
failed (e.g. this provides a clue to the 'year 0000' problem with some
datasets).