it counts how many are greater than or equal to say "fred" ,it adds the row number/1000 to split up freds so they are unique