Get the count right to pick random number

This is the right thing to do, instead of being an idiot.