I got the idea for this applet out of the book Learning ActionScript 3.0, but I've made improvements since. The counter in the upper left displays the current number of particles, the maximum number of particles, and the color of the last particle generated.
Instructions:
Click to move the particle generator.