Automatic tread number

Hi community,

I’m new dynamo user.

I’m trying to automatically number the treads of all the stairs in my revit model but I can´t do it.

Someone do it before or know how to do it?

Thanks for everything.