import rhinoscriptsyntax as rs
tol=rs.UnitAbsoluteTolerance()

def AddTimeline():
    count=rs.GetInteger("Number of ticks to place?",minimum=1)
    if not count: return
    
    space=rs.GetReal("Spacing between ticks?",minimum=tol)
    if not space: return
    
    ht=rs.GetReal("Text height",minimum=tol)
    if not ht: return
    
    pt=rs.GetPoint("Start point")
    if not pt: return
    
    rs.EnableRedraw(False)
    for i in range(count+1):
        rs.AddText(str(i),pt,ht)
        pt.X+=space
AddTimeline()