Often there is a need to insert ad code (or other bit of content) directly after the first post on a page, but not after any others. You can do this by adding a counter and an if statement to the loop.