Changing The Number Of Instances In A Feature Pattern API

I recorded a macro while changing the number of instances for Direction1 and Direction2 and it did nothing but select the pattern, components being patterned, and the edges to do the pattern along.  What do I need to add to this code to change the number of instances for Direction1 and Direction2.

Thanks

Dim swApp As Object

Dim Part As Object
Dim boolstatus As Boolean
Dim longstatus As Long, longwarnings As Long

Sub main()

Set swApp = _
Application.SldWorks

Set Part = swApp.ActiveDoc
boolstatus = Part.Extension.SelectByID2("PATTERN SCREWS", "COMPPATTERN", 0, 0, 0, False, 0, Nothing, 0)
Part.ClearSelection2 True
boolstatus = Part.Extension.SelectByID2("020-1@BASE", "COMPONENT", 0, 0, 0, True, 0, Nothing, 0)
boolstatus = Part.Extension.SelectByID2("020-3@BASE", "COMPONENT", 0, 0, 0, True, 0, Nothing, 0)
boolstatus = Part.Extension.SelectByID2("EDGE1", "EDGE", 0, 0, 0, True, 0, Nothing, 0)
boolstatus = Part.Extension.SelectByID2("EDGE2", "EDGE", 0, 0, 0, True, 0, Nothing, 0)
Part.ClearSelection2 True
End Sub

SolidworksApi macros