Pick a starting count in a wider range

Counter should be a random number between 1 and 65536, rather than between 1 and 18.