count number 2 shortest distance smallest one million