The following example will display the current number of steps in a message box.
Sub Main
MsgBox CurrentTask.StepCount
End Sub