Need Help with Activity Stream Loop Settings

I would like to embed the BP activity stream but I have no clue how to style it...mostly how to l set the number of posts it displays.
I know where to find the code:
http://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-activity-stream-loop/

The problem is I don't know what to do with it, or where to insert or change the parameters.
Can anyone help?