Hi astouffer,
execute a subroutine . . .

Code:
counter var byte
. . . . . your code . . . . 
gosub goesout
. . . . more code . . . . 
goesout:
Pulseout 10, pin3
for counter = 0 to 3
pulseout 10, pin2
next counter
return
Please forgive if the pulseout is wrong as I am not home and have no manual here . . .
But you get the Idea.