how we can know that how many numbers we have to write on number line
It depends that on how many number you are dealing with . If you dealing with 20 then mark with the gap of 2 numbers .If it is 50 then mark with the gap of 5 -10 . Basically its on you that how many number you want to represent keeping the fact in mind that the number line should not be very large.