If you are comfortable with running totals, by all means, follow DBlank's post.
shared variables are a means for you keep counts/values and use them as you will in the report, independent of detail/groups that you have created. I use them like running totals for the most part, but you can use the variable to insert page breaks or conditional suppress fields based on the value of the variable you are tracking.
you can create/track numbers, dates, strings, booleans, and shared variables are the only way to get a value in a subreport back to the main report to be used in further calculations.
They are really easy to use, and basically, once declared are available. Typically 3 formulas are required. 1 to reset the variable, 1 to increment, and 1 to display.
Take a look at the help file, it is fairly helpful, it is how I learned.
If you need further assistance.... well that's what we are here for.