The following example displays the total number of parameters of step #2 in a message box.
Sub Main
MsgBox CurrentTask.GetStepParamCount (2)
End Sub